﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
namespace INTEX.DataBase.Tools
{
    public partial class INTEXDBC
    {
        #region======A==============
        public void InserAPZUORD(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            //APZMANDANT APZART APZVAR APZANRKRS APZALFDNR APZSTUFE
            OracleCommand or1;

            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO APZUORD(APZMANDANT, APZKUNDNR, APZWERK, APZABT, APZART, APZVAR, APZANRKRS, APZALFDNR, APZSTUFE, APZSPEZIF, APZSPSTA, APZSPGRD, APZSTDKALK, APZZUSTAND, APZZUSATZ1, APZZUSATZKZ1, APZZUSATZ2, APZZUSATZKZ2, APZZUSATZ3, APZZUSATZKZ3, APZZUSATZ4, APZZUSATZKZ4, APZZUSATZ5, APZZUSATZKZ5, APZZUSATZ6, APZZUSATZKZ6, APZZUSATZ7, APZZUSATZKZ7, APZZUSATZ8, APZZUSATZKZ8, APZZUSATZ9, APZZUSATZKZ9, APZZUSATZ10, APZZUSATZKZ10, APZZUSATZ11, APZZUSATZKZ11, APZZUSATZ12, APZZUSATZKZ12, APZZUSATZ13, APZZUSATZKZ13, APZZUSATZ14, APZZUSATZKZ14, APZZUSATZ15, APZZUSATZKZ15, APZZUSATZ16, APZZUSATZKZ16, APZZUSATZ17, APZZUSATZKZ17, APZZUSATZ18, APZZUSATZKZ18, APZZUSATZ19, APZZUSATZKZ19, APZZUSATZ20, APZZUSATZKZ20, APZZUSATZ21, APZZUSATZKZ21, APZZUSATZ22, APZZUSATZKZ22, APZZUSATZ23, APZZUSATZKZ23, APZZUSATZ24, APZZUSATZKZ24, APZZUSATZ25, APZZUSATZKZ25, APZZUSATZ26, APZZUSATZKZ26, APZZUSATZ27, APZZUSATZKZ27, APZZUSATZ28, APZZUSATZKZ28, APZZUSATZ29, APZZUSATZKZ29, APZZUSATZ30, APZZUSATZKZ30, APZZUSATZ31, APZZUSATZKZ31, APZZUSATZ32, APZZUSATZKZ32, APZZUSATZ33, APZZUSATZKZ33, APZZUSATZ34, APZZUSATZKZ34, APZZUSATZ35, APZZUSATZKZ35, APZZUSATZ36, APZZUSATZKZ36, APZZUSATZ37, APZZUSATZKZ37, APZZUSATZ38, APZZUSATZKZ38, APZZUSATZ39, APZZUSATZKZ39, APZZUSATZ40, APZZUSATZKZ40, APZZUSATZ41, APZZUSATZKZ41, APZZUSATZ42, APZZUSATZKZ42, APZZUSATZ43, APZZUSATZKZ43, APZZUSATZ44, APZZUSATZKZ44, APZZUSATZ45, APZZUSATZKZ45, APZZUSATZ46, APZZUSATZKZ46, APZZUSATZ47, APZZUSATZKZ47, APZZUSATZ48, APZZUSATZKZ48, APZZUSATZ49, APZZUSATZKZ49, APZZUSATZ50, APZZUSATZKZ50, APZZANRKRS1, APZZALFDNR1, APZZAKZ1, APZZANRKRS2, APZZALFDNR2, APZZAKZ2, APZZANRKRS3, APZZALFDNR3, APZZAKZ3, APZZANRKRS4, APZZALFDNR4, APZZAKZ4, APZPRIO, APZAENDZL, APZAENDBEN, APZAENDDAT, APZNEUBEN, APZNEUDAT, APZFILLER)"
                + "VALUES (:APZMANDANT, '00000000', '   ', '   ', :APZART, :APZVAR, :APZANRKRS, :APZALFDNR, :APZSTUFE, '                                                  ', 'N', '                              ', 'N', '    ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '          ', '  ', '  ', '000000', ' ', '  ', '000000', ' ', '  ', '000000', ' ', '  ', '000000', ' ', '0', 0, '        ', 0, 'NILL    ', '20120811', '                                                 ')";
            or1.Parameters.Add("APZMANDANT", OracleType.NVarChar).Value = dwData["APZMANDANT"].ToString();
            or1.Parameters.Add("APZART", OracleType.NVarChar).Value = dwData["APZART"].ToString();
            or1.Parameters.Add("APZVAR", OracleType.NVarChar).Value = dwData["APZVAR"].ToString();
            or1.Parameters.Add("APZANRKRS", OracleType.NVarChar).Value = dwData["APZANRKRS"].ToString();
            or1.Parameters.Add("APZALFDNR", OracleType.NVarChar).Value = dwData["APZALFDNR"].ToString();
            or1.Parameters.Add("APZSTUFE", OracleType.NVarChar).Value = dwData["APZSTUFE"].ToString();
            setResult = Connect2Proxy(or1);
        }

        public void InsertABARTE(DataRow dwData, string ITXDBVERSION = "50.24")
        {

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO ABARTE(ABEMANDANT, ABEAUFKRS, ABEAUFLFD, ABEAUFPOS, ABEAFOLGE, ABEAEVOR, ABEMODNR, ABEEINSTNR, ABEWERTX, ABEWERTN, ABEPROGNR, ABEEINAUS, ABEREZEPTKZ, ABEREZEPTNR, ABEREZEPTST, ABEWERKZ, ABEFAKTOR, ABESTAKZ, ABEMODEIN, ABEIWERTX, ABEIWERTN, ABENEUBEN, ABENEUDAT, ABEPFLKZ, ABEDRUCKKZ, ABERUEKZ, ABEREZPOS, ABEMETHODE, ABEMWERT, ABEMESCHL, ABEFILLER)"
                + " VALUES (:ABEMANDANT, :ABEAUFKRS, :ABEAUFLFD, :ABEAUFPOS, :ABEAFOLGE, :ABEAEVOR, :ABEMODNR, :ABEEINSTNR, '16              ', '0000000016000000', '0000', ' ', ' ', '          ', '0', '              ', '00', ' ', ' ', '                ', '0000000000000000', 'INTEXE  ', 20140401, 'N', 'J', 'N', '0000', '     ', ' ', '00', '                  ')";
            or1.Parameters.Add("ABEMANDANT", OracleType.NVarChar).Value = dwData["ABEMANDANT"].ToString();
            or1.Parameters.Add("ABEAUFKRS", OracleType.NVarChar).Value = dwData["ABEAUFKRS"].ToString();
            or1.Parameters.Add("ABEAUFLFD", OracleType.NVarChar).Value = dwData["ABEAUFLFD"].ToString();
            or1.Parameters.Add("ABEAUFPOS", OracleType.NVarChar).Value = dwData["ABEAUFPOS"].ToString();
            or1.Parameters.Add("ABEAFOLGE", OracleType.NVarChar).Value = dwData["ABEAFOLGE"].ToString();
            or1.Parameters.Add("ABEAEVOR", OracleType.NVarChar).Value = dwData["ABEAEVOR"].ToString();
            or1.Parameters.Add("ABEMODNR", OracleType.NVarChar).Value = dwData["ABEMODNR"].ToString();
            or1.Parameters.Add("ABEEINSTNR", OracleType.NVarChar).Value = dwData["ABEEINSTNR"].ToString(); 
            Connect2Proxy(or1);

        }
        public void InsertABAUFM(DataRow dwData, string ITXDBVERSION = "50.24")
        {

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO ABAUFM(ABAMANDANT, ABAAUFTYP, ABAAUFKRS, ABAAUFLFD, ABAAUFPOS, ABAAPOS, ABAERLKZ, ABARESMG, ABASANZSTK, ABASSTKLG, ABASSTKLGV, ABASSTKLGB, ABASSTKGEW, ABASSTKGEWV, ABASSTKGEWB, ABASSTKBRT, ABASSTKBRTV, ABASSTKBRTB, ABAIANZSTK, ABAIZENSUR1, ABAIZENSURKZ1, ABAIZENSUR2, ABAIZENSURKZ2, ABAIGESLGZS1, ABAIGESLGZS2, ABASTDPOS, ABASFERTKZ, ABAUEBKZ, ABAUMAILKZ, ABASGESLG, ABASGESGEW, ABASME, ABAFRMG, ABARSTSLG, ABARSTSGEW, ABAMINUSLG, ABAMINUSGEW, ABALEAPOS, ABAPOOL, ABARESFLAG, ABAVKAUFTYP, ABAVKAUFKRS, ABAVKAUFLFD, ABAVKAUFPOS, ABAVKUPOS, ABAVB, ABAVG, ABAZUPRIO, ABASTKNEUTR, ABARESPROG, ABARESBEN, ABARESDAT, ABARESZEIT, ABARVSACHB, ABARKUNDNR, ABARBISDAT, ABAVLVB, ABAVLVG, ABAVLSACHB, ABAVLGEGEN, ABAPRKUNDNR, ABAPRAUFKRS, ABAPRAUFLFD, ABAPRAUFPOS, ABAGENEHM, ABAGSACHB, ABALIEFNR, ABAVSACHB, ABAVSTKNR, ABAVERSWEG, ABAMVERSDAT, ABAWVDAT, ABGENDAT, ABAGENNR, ABAGENNAME, ABAGENWEG, ABAZUSTK, ABAZULG, ABAOPTKZ, ABAMAFZST, ABAPART1, ABAPARTST1, ABAPART2, ABAPARTST2, ABAPART3, ABAPARTST3, ABAPART4, ABAPARTST4, ABAPART5, ABAPARTST5, ABAPART6, ABAPARTST6, ABAPART7, ABAPARTST7, ABAPART8, ABAPARTST8, ABAPART9, ABAPARTST9, ABAPART10, ABAPARTST10, ABASZENSUR, ABASZENSURKZ, ABAKUTLSTK, ABABAHNKZ, ABAWDUPOS, ABABAHNEN, ABATEILKZ, ABAKUNDNRU, ABAWERKU, ABAABTU, ABAARTU, ABAVARU, ABADESSU, ABACOLORITU, ABAFARBEU, ABABESCHU, ABAFARBBEZU, ABAANZ1, ABALAENGE1, ABABREITE1, ABAANZ2, ABALAENGE2, ABABREITE2, ABAANZ3, ABALAENGE3, ABABREITE3, ABAANZ4, ABALAENGE4, ABABREITE4, ABAANZ5, ABALAENGE5, ABABREITE5, ABAVERSDAT, ABAVATYP, ABAANZORG, ABAANZKOP, ABAVERSART, ABASPED, ABALIEFKD, ABAVERSKD, ABAADRSLL, ABAVAKZ, ABALIEFKOMP, ABATEILNR, ABAVDPKZ, ABATPMA, ABABOXMAX, ABABOXANZ, ABALGEBNR, ABANKGEB, ABAIFEUCHTE, ABAKUNDNR, ABASTKNR, ABAPARTIE, ABAPARTIEKZ, ABAKDPARTIE, ABAKDAUFTNR, ABAKDAUFDAT, ABAMAART, ABASTKLFDNR, ABAAUFMSL, ABAZUSAM, ABAPACKTYP, ABATAX, ABAHUELSE, ABAWOBST, ABAWICKL, ABAFDRES, ABAKF, ABANRVERG, ABASTKNRKRS, ABASUFFART, ABATRENNZ, ABALAENGEU, ABALAENGES, ABASCHRITW, ABAFUELLZ, ABAASSCHNIT, ABAETITYP, ABAANZRET, ABAKDETKZ, ABADOPPEL, ABALOAN, ABALBAN, ABALPAN, ABAAUFBKZAN, ABALOA2, ABALBA2, ABALPA2, ABAABKZA2, ABAPKL, ABABEM1, ABABEM2, ABAMRKM1, ABAMRKM2, ABAMRKM3, ABAKZNTO, ABAFESP, ABADIAUFKRS, ABADIAUFLFD, ABADIAUFPOS, ABADILG, ABADIGEW, ABADISTK, ABADISLG, ABADISGEW, ABABA, ABAASGESLG, ABAASGESGEW, ABAPNRKRS, ABAPLFDNR, ABAGKREGEL, ABAPROVOR, ABAPRSFE, ABAWSCHTXT, ABAVORSGEL, ABASELVL, ABASELVR, ABAKOLL, ABAVKART, ABAVKFARBE, ABAGBEDKZ, ABADL, ABAKDPARTKZ, ABAFILLER, ABAAENDZL, ABAAENDBEN, ABAAENDDAT, ABANEUBEN, ABANEUDAT)"
                    + " VALUES (:ABAMANDANT, :ABAAUFTYP, :ABAAUFKRS, :ABAAUFLFD, :ABAAUFPOS, :ABAAPOS, ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', ' ', ' ', ' ', 0, 0, 1, ' ', ' ', ' ', 0, 100390, '5', 0, 0, 230, 0, 0, 3, ' ', ' ', ' ', '  ', '000000', '000', '00', '   ', '   ', '9', ' ', '        ', '        ', 0, 0, '        ', '        ', 0, '   ', '   ', '        ', ' ', '        ', '  ', '000000', '000', ' ', '        ', '        ', '        ', '            ', '  ', 0, 0, 0, '            ', '                              ', '  ', 0, 0, ' ', 0, '           ', 0, '           ', 0, '           ', 0, '           ', 0, '           ', 0, '           ', 0, '           ', 0, '           ', 0, '           ', 0, '           ', 0, ' ', ' ', 0, ' ', 1, 0, ' ', '        ', '   ', '   ', '                    ', '   ', '          ', '          ', '          ', '          ', '                    ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '  ', 0, 0, '   ', '   ', '00000000', '00000000', '00000000', ' ', ' ', 0, ' ', '    ', 0, 0, '        ', '  ', 0, '00000000', '            ', '0000000', ' ', '          ', '                    ', 0, ' ', 0, '  ', '  ', '    ', '   ', '      ', ' ', ' ', ' ', ' ', ' ', '  ', ' ', ' ', 0, 0, 0, ' ', 'N', '  ', 0, ' ', '          ', '  ', '  ', '        ', ' ', '  ', '  ', '        ', ' ', '  ', '                                                            ', '                                                            ', '    ', '    ', '    ', ' ', ' ', '  ', '000000', '000', 0, 0, 0, 0, 0, '      ', 0, 0, '  ', '000000', '00000000', '        ', 0, '   ', ' ', 0, 0, '     ', '                        ', '          ', ' ', ' ', ' ', '                                                                                    ', 6, 'INTEXE  ', 20080606, 'INTEXE  ', 20080606)";
            or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
            or1.Parameters.Add("ABAAUFTYP", OracleType.NVarChar).Value = dwData["ABAAUFTYP"].ToString();
            or1.Parameters.Add("ABAAUFKRS", OracleType.NVarChar).Value = dwData["ABAAUFKRS"].ToString();
            or1.Parameters.Add("ABAAUFLFD", OracleType.NVarChar).Value = dwData["ABAAUFLFD"].ToString();
            or1.Parameters.Add("ABAAUFPOS", OracleType.NVarChar).Value = dwData["ABAAUFPOS"].ToString();
            or1.Parameters.Add("ABAAPOS", OracleType.NVarChar).Value = dwData["ABAAPOS"].ToString();
            Connect2Proxy(or1);

        }
        public void InsertICC_ABPOS_MAT(DataRow dwData, int option, string ITXDBVERSION = "50.24")
        {

            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    /*INSERT INTO ICC_ABPOS_MAT(ABID,ABEND,KRS,LFD, PROGRP,ARTGRP,MATGRP,ABPART, ABPVAR, ABPFARBE,  
ABPSPGRD, ABPGESSTA, UM,  TQTY,QC,ARTDES, CDES, SECTION, PHOTOLINK, MAINFABRIC)  
 SELECT SEQ_ICC_ITX.NEXTVAL,A.* FROM (SELECT 'NO ' AS ABEND,ABPAUFKRS AS KRS,ABPAUFLFD AS LFD,
 MAX(FSPROGRP) AS PROGRP, MAX(FSARTGRP) AS ARTGRP, MAX(FSMATGRP) AS MATGRP,ABPART AS ABPART,ABPVAR AS ABPVAR,
 ABPFARBE AS ABPFARBE, 
 MAX(ABPSPGRD) AS ABPSPGRD,MAX(ABPGESSTA) AS ABPGESSTA,'PCS' AS UM, SUM(ABPSOLLMENGE7) AS TQTY, 
 MAX(ABPNEUBEN) AS QC,
 MAX(FSABEZ) AS ARTDES,MAX(FSFABEZ) AS CDES,
 MAX(FSARTPRGR) AS SECTION,MAX(TRIM(FSART)||'.jpg') AS PHOTOLINK,
 MAX(TRIM(SP.LSNAME1)||FSSMART) AS MAINFABRIC 
 FROM ABPOS P LEFT JOIN FSSTAMM ON ABPART=FSART 
 LEFT JOIN FSFARBEN ON FSFART=ABPART AND FSFFARBE=ABPFARBE LEFT JOIN FSSTUELI ON FSSART=FSART 
 AND FSSZUSCHN='J' LEFT JOIN WASTAMM ON WAART=FSSMART 
 LEFT JOIN LIEFDAT SP ON WALIEFNR=SP.LSLIEFNR 
 WHERE NOT EXISTS (SELECT 1 FROM ICC_ABPOS_MAT M WHERE M.ABPART=P.ABPART AND M.ABPVAR=P.ABPVAR AND M.ABPFARBE=P.ABPFARBE)  
 GROUP BY ABPAUFKRS,ABPAUFLFD,ABPART,ABPVAR,ABPFARBE) A*/

                    or1.CommandText = "INSERT INTO ICC_ABPOS_MAT(ABID,ABEND,KRS,LFD, PROGRP,ARTGRP,MATGRP,MATART,ABPART, ABPVAR, ABPFARBE,ABPLIEFDAT, MPRICE,"
                        + "ABPLIEFNR,ABPANRKR,EXTFTYNAME,ABPSPGRD, ABPGESSTA, UM,  TQTYP,TQTYD,QC,ARTDES, CDES, SECTION, PHOTOLINK, MAINFABRIC,KOLL)  "
                        + " SELECT SEQ_ICC_ITX.NEXTVAL,A.* FROM (SELECT 'NO ' AS ABEND,ABPAUFKRS AS KRS,ABPAUFLFD AS LFD,"
                        + " MAX(FSPROGRP) AS PROGRP, MAX(FSARTGRP) AS ARTGRP, MAX(FSMATGRP) AS MATGRP,MAX(FSMATART) AS MATART,ABPART AS ABPART,ABPVAR AS ABPVAR,"
                        + " ABPFARBE AS ABPFARBE,  MAX(ABPLIEFDAT) AS ABPLIEFDAT,MAX(ARWERT) AS MPRICE,MAX(ABPLIEFNR) AS ABPLIEFNR,"
                        + "MAX(ABPANRKR) AS ABPANRKR,MAX(EX.LSNAME1) AS EXTFTYNAME,MAX(ABPSPGRD) AS ABPSPGRD,MAX(ABPGESSTA) AS ABPGESSTA,"
                        + "'PCS' AS UM, SUM(ABPSOLLMENGE7*0.01) AS TQTYP, SUM(ABPSOLLMENGE5*0.01) AS TQTYD, "
                        + " MAX(ABPNEUBEN) AS QC, MAX(FSABEZ) AS ARTDES,MAX(FSFFBEZ) AS CDES, MAX(FSARTPRGR) AS SECTION,MAX(TRIM('R:/'||FSART)||'.jpg') AS PHOTOLINK,"
                        + " MAX(TRIM(SP.LSNAME1)||FSSMART) AS MAINFABRIC,MAX(FSKOLL)  FROM ABPOS P LEFT JOIN FSSTAMM ON ABPART=FSART "
                        + " LEFT JOIN FSFARBEN ON FSFART=ABPART AND FSFFARBE=ABPFARBE "
                        + " LEFT JOIN FSSTUELI ON FSSART=FSART  AND FSSZUSCHN='J' "
                        + " LEFT JOIN WASTAMM ON WAART=FSSMART "
                        + " LEFT JOIN ABPR ON ABPAUFKRS=ARAUFKRS AND ABPAUFLFD=ARAUFLFD AND ABPAUFPOS=ARAUFPOS "
                        + " LEFT JOIN LIEFDAT SP ON WALIEFNR=SP.LSLIEFNR "
                        + " LEFT JOIN LIEFDAT EX ON ABPLIEFNR=EX.LSLIEFNR "
                        + "  WHERE NOT EXISTS (SELECT 1 FROM ICC_ABPOS_MAT M WHERE M.ABPART=P.ABPART AND M.ABPVAR=P.ABPVAR AND M.ABPFARBE=P.ABPFARBE)  "
                        + "  GROUP BY ABPAUFKRS,ABPAUFLFD,ABPART,ABPVAR,ABPFARBE) A";
                    break;
                default:
                    break;
            }
            Connect2Proxy(or1);
        }
        public void InsertICC_ABAUFM(DataRow dwData, int option, string ITXDBVERSION = "50.24")
        {

            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    or1.CommandText = "INSERT INTO ICC_ABAUFM(ABAID,ABAMANDANT,MTYPE,ABAAUFTYP,ABAERLKZ,QTYPLAN,ABARESMG, ABAQTYALLOCATE,ABAQTYRESERVE,ABAQTYRECEIVED,ABAVKAUFTYP, ABAVKAUFKRS, ABAVKAUFLFD, ABAVKAUFPOS"
                + ", ABAVKUPOS,ABAART,ABAVAR,ABAFARBE,ABAGROE,ABACOLORREF,ABPART, ABPVAR,ABPFARBE,ABPGROE,FSABEZ,FSFFBEZ,LSLIEFNR,LSLIEFNA,WAUEBM,WAFGRLFD,FSARTPRGR,FSKOLL)"
                    + " SELECT SEQ_ICC_MU.NEXTVAL,R.MDMANDANT,'M','N','N',R.MDMENGE*0.001,R.MDMENGE*0.001,0,0,0,R.MDTYP,R.MDAUFKRS,R.MDAUFLFD,R.MDAUFPOS,R.MDRPOS,substr(mdmat||'                ',1,20),R.MDVAR,substr( '                    ',1,10),substr( '                    ',1,7),MDFILLER, "
                    + "ABPART, ABPVAR,ABPFARBE,ABPGROE,FSABEZ,FSFFBEZ,LSLIEFNR,LSLIEFNA,'','',FSARTPRGR,FSKOLL FROM MDECK R"
                    + " JOIN ABPOS ON ABPAUFKRS=MDAUFKRS AND ABPAUFLFD=MDAUFLFD AND ABPAUFPOS=MDAUFPOS"
                    + " LEFT JOIN FSSTAMM ON ABPART=FSART "
                    + " LEFT JOIN FSFARBEN ON FSFART=ABPART  AND FSFFARBE=ABPFARBE "
                    + " LEFT JOIN LIEFDAT ON ABPLIEFNR=LSLIEFNR"
                    + " WHERE NOT EXISTS "
                    + " (SELECT 1 FROM ICC_ABAUFM M  WHERE R.MDAUFKRS=M.ABAVKAUFKRS AND R.MDAUFLFD=M.ABAVKAUFLFD AND R.MDAUFPOS=M.ABAVKAUFPOS AND TRIM(R.MDRPOS)=TRIM(M.ABAVKUPOS))";
                    break;
                case 2:
                    or1.CommandText = "INSERT INTO ICC_ABAUFM(ABAID,ABAMANDANT,MTYPE,ABAAUFTYP,ABAERLKZ,QTYPLAN,ABARESMG, ABAQTYALLOCATE,ABAQTYRESERVE,ABAQTYRECEIVED,ABAVKAUFTYP, ABAVKAUFKRS, ABAVKAUFLFD, ABAVKAUFPOS"
                + ", ABAVKUPOS,ABAART,ABAVAR,ABAFARBE,ABAGROE,ABACOLORREF,ABPART, ABPVAR,ABPFARBE,ABPGROE,FSABEZ,FSFFBEZ,LSLIEFNR,LSLIEFNA,WAUEBM,WAFGRLFD,FSARTPRGR,EXART,EXCOLOR,FSKOLL)"
                    + " SELECT SEQ_ICC_MU.NEXTVAL,R.WDMANDANT,'F','N','N',R.WDBEDARF*0.01,R.WDBEDARF*0.01,0,0,0,R.WDTYP,R.WDAUFKRS,R.WDAUFLFD,R.WDAUFPOS,R.WDUPOS,WDART,WDVAR,WDFARBE,substr( '                    ',1,7), WDFILLER,"
                    + " ABPART, ABPVAR,ABPFARBE,ABPGROE,FSABEZ,FSFFBEZ,LSLIEFNR,LSLIEFNA,WAUEBM,WAFGRLFD,FSARTPRGR,WALOHNA,WAFMUDESS,FSKOLL FROM WDECK R "
                    + " JOIN ABPOS ON ABPAUFKRS=WDAUFKRS AND ABPAUFLFD=WDAUFLFD AND ABPAUFPOS=WDAUFPOS"
                     + " LEFT JOIN FSSTAMM ON ABPART=FSART "
                    + " LEFT JOIN FSFARBEN ON FSFART=ABPART AND FSFFARBE=ABPFARBE "
                    + " LEFT JOIN LIEFDAT ON ABPLIEFNR=LSLIEFNR"
                    + " LEFT JOIN WASTAMM ON WDART=WAART AND WDVAR=WAVAR"
                    + " LEFT JOIN WAFARBEN ON WAFART=WDART AND WAFZUSATZ=WDFARBE"
                    + " WHERE NOT EXISTS "
                    + " (SELECT 1 FROM ICC_ABAUFM M  WHERE R.WDAUFKRS=M.ABAVKAUFKRS AND R.WDAUFLFD=M.ABAVKAUFLFD AND R.WDAUFPOS=M.ABAVKAUFPOS AND TRIM(R.WDUPOS)=TRIM(M.ABAVKUPOS))";
                    break;
                case 3:
                    or1.CommandText = "INSERT INTO ICC_ABAUFM(ABAID,ABAMANDANT,MTYPE,ABAAUFTYP,ABAERLKZ,QTYPLAN,ABARESMG, ABAQTYALLOCATE,ABAQTYRESERVE,ABAQTYRECEIVED,ABAVKAUFTYP, ABAVKAUFKRS, ABAVKAUFLFD, ABAVKAUFPOS"
               + ", ABAVKUPOS,ABAART,ABAVAR,ABAFARBE,ABAGROE,ABACOLORREF,ABPART, ABPVAR,ABPFARBE,ABPGROE,FSABEZ,FSFFBEZ,LSLIEFNR,LSLIEFNA,WAUEBM,WAFGRLFD,FSARTPRGR,FSKOLL)"
                    + " SELECT SEQ_ICC_MU.NEXTVAL,R.FDMANDANT,'T','N','N',R.FDMENGE,R.FDMENGE,0,0,0,R.FDTYP,R.FDAUFKRS,R.FDAUFLFD,R.FDAUFPOS,SUBSTR(R.FDSETPOS,2,2),FDART,FDVAR,FDFARBE,FDGROE, FDFILLER,"
                    + "ABPART, ABPVAR,ABPFARBE,ABPGROE,FSABEZ,FSFFBEZ,LSLIEFNR,LSLIEFNA,'',0,FSARTPRGR,FSKOLL  FROM FDECK R "
                    + " JOIN ABPOS P ON ABPAUFKRS=FDAUFKRS AND ABPAUFLFD=FDAUFLFD AND ABPAUFPOS=FDAUFPOS AND P.ABPSPGRD<='89'"
                    + " LEFT JOIN FSSTAMM ON ABPART=FSART "
                    + " LEFT JOIN FSFARBEN ON FSFART=ABPART AND FSFFARBE=ABPFARBE "
                    + " LEFT JOIN LIEFDAT ON ABPLIEFNR=LSLIEFNR"
                   + " WHERE  FDSA='V' AND FDTYP='B' AND NOT EXISTS"
                   + "(SELECT 1 FROM ICC_ABAUFM M WHERE R.FDAUFKRS=M.ABAVKAUFKRS AND R.FDAUFLFD=M.ABAVKAUFLFD AND R.FDAUFPOS=M.ABAVKAUFPOS AND R.FDART=ABAART AND R.FDVAR=ABAVAR AND R.FDFARBE=ABAFARBE AND R.FDGROE=ABAGROE )";
                    break;
                case 4:
                    or1.CommandText = "INSERT INTO ICC_ABAUFM(ABAID,ABAMANDANT,MTYPE,ABAAUFTYP,ABAERLKZ,QTYPLAN,ABARESMG, ABAQTYALLOCATE,ABAQTYRESERVE,ABAQTYRECEIVED,ABAVKAUFTYP, ABAVKAUFKRS, ABAVKAUFLFD, ABAVKAUFPOS"
                + ", ABAVKUPOS,ABAART,ABAVAR,ABAFARBE,ABAGROE,ABACOLORREF,ABPART, ABPVAR,ABPFARBE,ABPGROE,FSABEZ,FSFFBEZ,LSLIEFNR,LSLIEFNA,WAUEBM,WAFGRLFD,FSARTPRGR,FSKOLL)"
                    + " SELECT SEQ_ICC_MU.NEXTVAL,R.GAMANDANT,'G','N','N',R.GAKG1*0.01,0,0,0,'V',R.GAAUFKRS,R.GAAUFLFD,R.GAAUFPOS,R.GAPOS,GAART,GAVAR,GAFARBE,substr( '                    ',1,7),GAFILLER,"
                    + "ABPART, ABPVAR,ABPFARBE,ABPGROE,FSABEZ,FSFFBEZ,LSLIEFNR,LSLIEFNA,'',0,FSARTPRGR,FSKOLL  FROM GAAUF R "
                    + " JOIN ABPOS ON ABPAUFKRS=GAAUFKRS AND ABPAUFLFD=GAAUFLFD AND ABPAUFPOS=GAAUFPOS"
                    + " LEFT JOIN FSSTAMM ON ABPART=FSART "
                    + " LEFT JOIN FSFARBEN ON FSFART=ABPART AND FSFFARBE=ABPFARBE "
                    + " LEFT JOIN LIEFDAT ON ABPLIEFNR=LSLIEFNR"
                    + " WHERE NOT EXISTS "
                    + " (SELECT 1 FROM ICC_ABAUFM M  WHERE R.GAAUFKRS=M.ABAVKAUFKRS AND R.GAAUFLFD=M.ABAVKAUFLFD AND R.GAAUFPOS=M.ABAVKAUFPOS AND TRIM(R.GAPOS)=TRIM(M.ABAVKUPOS))";
                    break;
                case 9:
                    or1.CommandText = "INSERT INTO ICC_ABAUFM(ABAID, ABAMANDANT, MTYPE,ABAAUFTYP, ABAAUFKRS, ABAAUFLFD, ABAAUFPOS, ABAAPOS, ABAART, ABAVAR, ABAFARBE, ABAGROE, SELLER, SELLERNAME, ABACOLORREF, ABAERLKZ, QTYPLAN,ABARESMG, ABAQTYRESERVE, ABAQTYALLOCATE, ABAQTYRECEIVED, ABAVKAUFTYP, ABAVKAUFKRS, ABAVKAUFLFD, ABAVKAUFPOS, ABAVKUPOS, WAFGRLFD, WAUEBM, FSARTPRGR, ABPART, ABPVAR, ABPFARBE, ABPGROE, FSABEZ, FSFFBEZ, LSLIEFNR, LSLIEFNA, ABANEUDAT)"
                    + " SELECT SEQ_ICC_MU.NEXTVAL,:ABAMANDANT,:MTYPE,:ABAAUFTYP,:ABAAUFKRS,:ABAAUFLFD,:ABAAUFPOS,:ABAAPOS,:ABAART,:ABAVAR,:ABAFARBE,:ABAGROE,:SELLER,:SELLERNAME,:ABACOLORREF,:ABAERLKZ,:ABARESMG,:ABARESMG,:ABAQTYRESERVE,:ABAQTYALLOCATE,:ABAQTYRECEIVED,:ABAVKAUFTYP,:ABAVKAUFKRS,:ABAVKAUFLFD,:ABAVKAUFPOS,:ABAVKUPOS,:WAFGRLFD,:WAUEBM,:FSARTPRGR,:ABPART,:ABPVAR,:ABPFARBE,:ABPGROE,:FSABEZ,:FSFFBEZ,:LSLIEFNR,:LSLIEFNA,:ABANEUDAT FROM DUAL ";
                    or1.Parameters.Add("ABAMANDANT", OracleType.NVarChar).Value = dwData["ABAMANDANT"].ToString();
                    or1.Parameters.Add("MTYPE", OracleType.NVarChar).Value = dwData["MTYPE"].ToString();
                    or1.Parameters.Add("ABAAUFTYP", OracleType.NVarChar).Value = dwData["ABAAUFTYP"].ToString();
                    or1.Parameters.Add("ABAAUFKRS", OracleType.NVarChar).Value = dwData["ABAAUFKRS"].ToString();
                    or1.Parameters.Add("ABAAUFLFD", OracleType.NVarChar).Value = dwData["ABAAUFLFD"].ToString();
                    or1.Parameters.Add("ABAAUFPOS", OracleType.NVarChar).Value = dwData["ABAAUFPOS"].ToString();
                    or1.Parameters.Add("ABAAPOS", OracleType.NVarChar).Value = dwData["ABAAPOS"].ToString();
                    or1.Parameters.Add("ABAART", OracleType.NVarChar).Value = dwData["ABAART"].ToString();
                    or1.Parameters.Add("ABAVAR", OracleType.NVarChar).Value = dwData["ABAVAR"].ToString();
                    or1.Parameters.Add("ABAFARBE", OracleType.NVarChar).Value = dwData["ABAFARBE"].ToString();
                    or1.Parameters.Add("ABAGROE", OracleType.NVarChar).Value = dwData["ABAGROE"].ToString();
                    or1.Parameters.Add("SELLER", OracleType.NVarChar).Value = dwData["SELLER"].ToString();
                    or1.Parameters.Add("SELLERNAME", OracleType.NVarChar).Value = dwData["SELLERNAME"].ToString();
                    or1.Parameters.Add("ABACOLORREF", OracleType.NVarChar).Value = dwData["ABACOLORREF"].ToString();
                    or1.Parameters.Add("ABAERLKZ", OracleType.NVarChar).Value = dwData["ABAERLKZ"].ToString();
                    or1.Parameters.Add("ABARESMG", OracleType.NVarChar).Value = dwData["ABARESMG"].ToString();
                    or1.Parameters.Add("ABAQTYRESERVE", OracleType.NVarChar).Value = dwData["ABAQTYRESERVE"].ToString();
                    or1.Parameters.Add("ABAQTYALLOCATE", OracleType.NVarChar).Value = dwData["ABAQTYALLOCATE"].ToString();
                    or1.Parameters.Add("ABAQTYRECEIVED", OracleType.NVarChar).Value = dwData["ABAQTYRECEIVED"].ToString();
                    or1.Parameters.Add("ABAVKAUFTYP", OracleType.NVarChar).Value = dwData["ABAVKAUFTYP"].ToString();
                    or1.Parameters.Add("ABAVKAUFKRS", OracleType.NVarChar).Value = dwData["ABAVKAUFKRS"].ToString();
                    or1.Parameters.Add("ABAVKAUFLFD", OracleType.NVarChar).Value = dwData["ABAVKAUFLFD"].ToString();
                    or1.Parameters.Add("ABAVKAUFPOS", OracleType.NVarChar).Value = dwData["ABAVKAUFPOS"].ToString();
                    or1.Parameters.Add("ABAVKUPOS", OracleType.NVarChar).Value = dwData["ABAVKUPOS"].ToString();
                    or1.Parameters.Add("WAFGRLFD", OracleType.NVarChar).Value = dwData["WAFGRLFD"].ToString();
                    or1.Parameters.Add("WAUEBM", OracleType.NVarChar).Value = dwData["WAUEBM"].ToString();
                    or1.Parameters.Add("FSARTPRGR", OracleType.NVarChar).Value = dwData["FSARTPRGR"].ToString();
                    or1.Parameters.Add("ABPART", OracleType.NVarChar).Value = dwData["ABPART"].ToString();
                    or1.Parameters.Add("ABPVAR", OracleType.NVarChar).Value = dwData["ABPVAR"].ToString();
                    or1.Parameters.Add("ABPFARBE", OracleType.NVarChar).Value = dwData["ABPFARBE"].ToString();
                    or1.Parameters.Add("ABPGROE", OracleType.NVarChar).Value = dwData["ABPGROE"].ToString();
                    or1.Parameters.Add("FSABEZ", OracleType.NVarChar).Value = dwData["FSABEZ"].ToString();
                    or1.Parameters.Add("FSFFBEZ", OracleType.NVarChar).Value = dwData["FSFFBEZ"].ToString();
                    or1.Parameters.Add("LSLIEFNR", OracleType.NVarChar).Value = dwData["LSLIEFNR"].ToString();
                    or1.Parameters.Add("LSLIEFNA", OracleType.NVarChar).Value = dwData["LSLIEFNA"].ToString();
                    or1.Parameters.Add("ABANEUDAT", OracleType.NVarChar).Value = dwData["ABANEUDAT"].ToString();
                    break;
                default:
                    break;
            }
            Connect2Proxy(or1);

        }

        public void InsertICC_ABPOS_MCO(DataRow dwData, int option = 1, string ITXDBVERSION = "50.24")
        {
            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    or1.CommandText = "INSERT INTO ICC_ABPOS_MCO(ABCOID, MANDANT,KRS, LFD, POS, ART, VAR, FARBE, END, ENDDATE, APPDATE, QTY, QTYP, DQTY, MPRICE, PRODV, ADMINV, SNDQTY, S, M, L, XL, SP, MP, LP, XLP)"
                        + " VALUES (SEQ_ABCOID.NEXTVAL, :KRS, :LFD, '5  ', 'ART                 ', 'VAR', 'FARB      ', 'Y', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)";
                    or1.Parameters.Add("MANDANT", OracleType.NVarChar).Value = dwData["MANDANT"];
                    or1.Parameters.Add("KRS", OracleType.NVarChar).Value = dwData["KRS"];
                    or1.Parameters.Add("LFD", OracleType.NVarChar).Value = dwData["LFD"];
                    break;
                case 2:
                    or1.CommandText = "INSERT INTO ICC_ABPOS_MCO(ABCOID,MANDANT, KRS, LFD, POS, ART, VAR, FARBE,ARTDES,CDES,END, ENDDATE, APPDATE, QTY, QTYP, DQTY,MPRICE, VMQSTDPSTD,VMQSTDPEK,VMQSTDPPLAN,VMQPLANPSTD,VMQPLANPEK,VMQPLANPPLAN,VMQACTPSTD,VMQACTPEK,VMQACTPPLAN,PRODV, ADMINV, SNDQTY, S, M, L, XL, SP, MP, LP, XLP)"
                        + " SELECT SEQ_ABCOID.NEXTVAL as ABCOID, A.* FROM (SELECT ABPMANDANT AS MANDANT,ABPAUFKRS AS KRS,ABPAUFLFD AS LFD,COUNT(*) AS POS,"
                        + " ABPART AS ART,ABPVAR AS VAR,ABPFARBE AS FARBE,MAX(FSABEZ) AS ARTDES,MAX(FSFABEZ) AS CDES,'N' AS END,MAX(ABPERLDAT) AS ENDDATE,0 AS APPDATE,0 AS QTY,0 AS DQTY,"
                        + " SUM(ABPSOLLMENGE7)*0.01 AS QTYP,0 AS MPRICE,0 AS VMQSTDPSTD,0 AS VMQSTDPEK,0 AS VMQSTDPPLAN,0 AS VMQPLANPSTD,0 AS VMQPLANPEK,0 AS VMQPLANPPLAN,0 AS VMQACTPSTD,0 AS VMQACTPEK,0 AS VMQACTPPLAN,0 AS PRODV,0 AS ADMINV,"
                        + " 0 AS SNDQTY,0 AS S,0 AS M, 0 AS L,0 AS XL,0 AS SP,0 AS MP, 0 AS LP,0 AS XLP"
                        + " FROM ABPOS P JOIN FSSTAMM M ON ABPART=FSART "
                        + " JOIN FSFARBEN ON ABPART=FSFART  AND ABPFARBE=FSFFARBE"
                        + " WHERE NOT EXISTS"
                        + " (SELECT 1 FROM ICC_ABPOS_MCO M WHERE M.MANDANT=P.ABPMANDANT AND M.KRS=P.ABPAUFKRS AND M.LFD=ABPAUFLFD AND M.ART=ABPART AND M.VAR"
                        + " =ABPVAR AND M.FARBE=ABPFARBE)"
                        + " GROUP BY ABPMANDANT,ABPAUFKRS,ABPAUFLFD,ABPART,ABPVAR,ABPFARBE) A";
                    break;
            }

            setResult = Connect2Proxy(or1);
        }
        public void InsertABFOLGE(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO ABFOLGE(ABFMANDANT, ABFAUFKRS, ABFAUFLFD, ABFAUFPOS, ABFAFOLGE, ABFAENDZL, ABFAENDBEN, ABFAENDDAT, ABFNEUBEN, ABFNEUDAT, ABFPLANKZ, ABFKSTKRS, ABFKST, ABFSPLPOS, ABFAGANG, ABFBZAGANG, ABFMTYP, ABFLIEFNR, ABFMNRKRS, ABFMLFDNR, ABFMPOS, ABFMPLPOS, ABFMANUELKZ, ABFPARALKZ, ABFSOLLSTK, ABFSOLLMG, ABFSOLLME, ABFSOLLMTR, ABFLAEAEND, ABFGEWAEND, ABFBASMGE, ABFME, ABFFIX, ABFAGRVON, ABFAGRBIS, ABFMASCHANZ, ABFMASCHZE, ABFMASCHZT, ABFLIAFOLGE1, ABFLIART1, ABFLIMIUZ1, ABFLIMAUZ1, ABFLIMIWM1, ABFLIABS1, ABFLIABSZE1, ABFLIAFOLGE2, ABFLIART2, ABFLIMIUZ2, ABFLIMAUZ2, ABFLIMIWM2, ABFLIABS2, ABFLIABSZE2, ABFLIAFOLGE3, ABFLIART3, ABFLIMIUZ3, ABFLIMAUZ3, ABFLIMIWM3, ABFLIABS3, ABFLIABSZE3, ABFLIAFOLGE4, ABFLIART4, ABFLIMIUZ4, ABFLIMAUZ4, ABFLIMIWM4, ABFLIABS4, ABFLIABSZE4, ABFLIAFOLGE5, ABFLIART5, ABFLIMIUZ5, ABFLIMAUZ5, ABFLIMIWM5, ABFLIABS5, ABFLIABSZE5, ABFPERSANZ, ABFPERSZE, ABFPERSZT, ABFPERSMB, ABFRUESTZE, ABFRUESTZT, ABFRPERSZT, ABFANZMA, ABFFAKTOR, ABFFAKTORBLG, ABFABEARBZT, ABFARUESTZT, ABFAMASCHZT, ABFAPERSZT, ABFANZAF, ABFVERWZE, ABFVERWZTV, ABFVERWZTB, ABFVLFZT, ABFVLFZTZE, ABFSOLLSTART, ABFSOLLDAT, ABFSOLLSTARTA, ABFSOLLDATA, ABFFIXTERM, ABFRUECKKZ, ABFKENNUNG, ABFSONDERKZ, ABFZUSATZ1, ABFZUSATZ2, ABFZUSATZ3, ABFZUSATZ4, ABFZUSATZ5, ABFFZUSATZKZ1, ABFFZUSATZKZ2, ABFFZUSATZKZ3, ABFFZUSATZKZ4, ABFFZUSATZKZ5, ABFZUSTAND, ABFFERTIG, ABFMATABR, ABFDOMPART, ABFLAGPLKZ, ABFLO, ABFLB, ABFLP, ABFAUFBKZ, ABFPRUEFANW, ABFPROBE, ABFSPSTA, ABFSPGRD, ABFMEKOPFKZ, ABFSTATUS, ABFRUECKMKZ, ABFRAFOLGE, ABFRUECKDAT, ABFRUECKZT, ABFIMNRKRS, ABFIMLFDNR, ABFIMPOS, ABFISTK, ABFIMG, ABFIMTR, ABFIDIFFMG, ABFISTARTDAT, ABFISTARTZT, ABFIENDDAT, ABFIENDZT, ABFANZTLG, ABFRETOURKZ, ABFREAUFKRS, ABFREAUFLFD, ABFREAUFPOS, ABFSTUFE, ABFWERK, ABFANRKRS, ABFALFDNR, ABFSAFOLGE, ABFAEVOR, ABFEINSTKA, ABFBANRKRS, ABFBALFDNR, ABFEVARHNR, ABFEVARUNR, ABFRUESTFAM, ABFBNRKRS, ABFBLFDNR, ABFBPOS, ABFVONMOD, ABFBISMOD, ABFBLOCKKZ1, ABFBLOCKKZ2, ABFPAPIERKZ, ABFKALKKZ, ABFALTKSTKZ, ABFBDEKEN, ABFPRIO, ABFSTATKZ, ABFPROZMG, ABFMLMG, ABFQUALI, ABFLGRP, ABFLART, ABFLZDR, ABFPRBMGZT, ABFZEITLN, ABFPENETTO, ABFPLKOST, ABFLABDIPS, ABFNBREP, ABFAGENTF, ABFBAFOLGE, ABFVNAME, ABFFLAG, ABFEGVNAME1, ABFEGFLAG1, ABFEGVNAME2, ABFEGFLAG2, ABFEGVNAME3, ABFEGFLAG3, ABFEGVNAME4, ABFEGFLAG4, ABFEGVNAME5, ABFEGFLAG5, ABFMKFS, ABFMKFI, ABFMKGS, ABFMKGI, ABFMKKS, ABFMKKI, ABFMKRWS, ABFMKRWI, ABFMKFWS, ABFMKFWI, ABFMKSOS, ABFMKSOI, ABFMKTS, ABFMKTI, ABFMKUS, ABFMKUI, ABFMKREZFS, ABFMKREZFI, ABFMKREZCS, ABFMKREZCI, ABFMGKS1, ABFMGKS2, ABFMGKS3, ABFMGKS4, ABFMGKS5, ABFMGKI1, ABFMGKI2, ABFMGKI3, ABFMGKI4, ABFMGKI5, ABFFKMS1, ABFFKMS2, ABFFKMS3, ABFFKMS4, ABFFKMS5, ABFFKMI1, ABFFKMI2, ABFFKMI3, ABFFKMI4, ABFFKMI5, ABFFKPS1, ABFFKPS2, ABFFKPS3, ABFFKPS4, ABFFKPS5, ABFFKPI1, ABFFKPI2, ABFFKPI3, ABFFKPI4, ABFFKPI5, ABFFGKS1, ABFFGKS2, ABFFGKS3, ABFFGKS4, ABFFGKS5, ABFFGKI1, ABFFGKI2, ABFFGKI3, ABFFGKI4, ABFFGKI5, ABFFFKS, ABFFFKI, ABFIMZT, ABFIPZT, ABFIRML, ABFIRMS, ABFIRPZ, ABFBNRZ, ABFSCHBSTA, ABFWARSTA, ABFBSMENGE, ABFFBSTA, ABFGEBNR, ABFBEHNRT, ABFBEHNRN, ABFFBBELO, ABFFBBELB, ABFFBBELP, ABFSTOPSTA, ABFSTOPGRD, ABFZUSKZ, ABFERSTKZ, ABFLAEAENDO, ABFPRUEFGEN, ABFCWEIGHT, ABFRUECKBEN, ABFKETTANZ, ABFMETHODE, ABFRZKZ, ABFREWEIL, ABFURLAND, ABFTSDAT, ABFTSAFO, ABFTEDAT, ABFTEAFO, ABFTSSDAT, ABFTESDAT, ABFFILLER)"
+ "VALUES (:ABFMANDANT, :ABFAUFKRS, :ABFAUFLFD, :ABFAUFPOS, :ABFAFOLGE, 1, '        ', 0, :ABFNEUBEN, :ABFNEUDAT, 'J', '  ', '    ', '   ', '               ', '                                                            ', '        ', '        ', '  ', '0000', '00', 9999, 'J', 'N', 14, 2671640, '1', 2671640, 0, 0, 100000, '1', 'N', 0, 0, 0, '  ', 0, '000', '  ', 0, 0, 0, 0, '  ', '000', '  ', 0, 0, 0, 0, '  ', '000', '  ', 0, 0, 0, 0, '  ', '000', '  ', 0, 0, 0, 0, '  ', '000', '  ', 0, 0, 0, 0, '  ', 0, 'MI', 100, 0, '  ', 0, 0, 10000, 0, 0, 27, 0, 0, 27, 0, '  ', 0, 0, 300, 'TG', 20110822, 20110825, 20110822, 20110825, ' ', 'P', '  ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '    ', 'N', ' ', 'N', 'N', '  ', '  ', '        ', ' ', 'N', 'N', ' ', '                              ', ' ', ' ', ' ', '000', 0, 0, '  ', '0000', '00', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'N', '  ', '000000', '000', 'F', '   ', 'TX', '004950', '010', '0000', 'N', '  ', '000000', '  ', '  ', '          ', '  ', '0000', '00', 0, 0, ' ', '0', 'J', 'J', ' ', '  ', '00', ' ', 0, 0, '      ', '      ', '      ', ' ', 0, ' ', 0, ' ', 0, 0, ' ', '000', '     ', 0, '     ', 0, '     ', 0, '     ', 0, '     ', 0, '     ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', ' ', 0, ' ', '        ', '000000', '  ', '  ', '  ', '        ', '  ', '   ', '  ', ' ', '00', ' ', 0, '        ', 0, '        ', ' ', '  ', '   ', 20110822, '000', 0, '000', 20110822, 20110825, '                                                                                                                 ')";

            or1.Parameters.Add("ABFMANDANT", OracleType.NVarChar).Value = dwData["ABFMANDANT"];
            or1.Parameters.Add("ABFAUFKRS", OracleType.NVarChar).Value = dwData["ABFAUFKRS"];
            or1.Parameters.Add("ABFAUFLFD", OracleType.NVarChar).Value = dwData["ABFAUFLFD"];
            or1.Parameters.Add("ABFAUFPOS", OracleType.NVarChar).Value = dwData["ABFAUFPOS"];
            or1.Parameters.Add("ABFAFOLGE", OracleType.NVarChar).Value = dwData["ABFAFOLGE"];
            or1.Parameters.Add("ABFNEUBEN", OracleType.NVarChar).Value = dwData["ABFNEUBEN"];
            or1.Parameters.Add("ABFNEUDAT", OracleType.NVarChar).Value = dwData["ABFNEUDAT"];
            setResult = Connect2Proxy(or1);
        }
        public void InsertABKOPF(DataRow dwData, string ITXDBVERSION = "50.24")
        {

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO ABKOPF(ABKMANDANT, ABKAUFKRS, ABKAUFLFD, ABKAUFART, ABKKUNDNR, ABKWERK, ABKABT, ABKVTRNR, ABKAEDAT, ABKKDAUFTNR, ABKKDAUFDAT, ABKKDZEICH, ABKKDSB, ABKARTSB, ABKORDER, ABKSPED, ABKVERSART, ABKVERPART, ABKVERSADR, ABKDIVADR, ABKBSTADR, ABKBSTDAT, ABKRECHADR, ABKAUFTTXT1, ABKAUFTTXT2, ABKZENTREG, ABKTEXTE11, ABKTEXTE12, ABKTEXTE13, ABKTEXTE14, ABKTEXTE21, ABKTEXTE22, ABKTEXTE23, ABKTEXTE24, ABKAENDZL, ABKAENDBEN, ABKAENDDAT, ABKNEUBEN, ABKNEUDAT, ABKDIVARTKZ, ABKAGKKZ, ABKKDKONTR, ABKSTKZL, ABKCOMPKZ, ABKFILLER)"
                + "VALUES (:ABKMANDANT, :ABKAUFKRS, :ABKAUFLFD, :ABKAUFART, '00000000', '   ', '   ', '        ', :ABKAEDAT,:ABKKDAUFTNR, :ABKKDAUFDAT, '               ', '        ', :ABKARTSB, '    ', '   ', '   ', '   ', '        ', '        ', '        ', 0, '        ', '                                                                ', '                                                                ', 'N', '  ', '  ', '  ', '  ', '  ', '  ', '  ', '  ', 0, '        ', 0, :ABKNEUBEN, :ABKNEUDAT, 'N', ' ', '               ', 0, ' ', '                                                                       ')";

            or1.Parameters.Add("ABKMANDANT", OracleType.NVarChar).Value = dwData["ABKMANDANT"];
            or1.Parameters.Add("ABKAUFKRS", OracleType.NVarChar).Value = dwData["ABKAUFKRS"];
            or1.Parameters.Add("ABKAUFLFD", OracleType.NVarChar).Value = dwData["ABKAUFLFD"];
            or1.Parameters.Add("ABKAUFART", OracleType.NVarChar).Value = dwData["ABKAUFART"];
            or1.Parameters.Add("ABKARTSB", OracleType.NVarChar).Value = dwData["ABKARTSB"];
            or1.Parameters.Add("ABKAEDAT", OracleType.NVarChar).Value = dwData["ABKAEDAT"];
            or1.Parameters.Add("ABKKDAUFTNR", OracleType.NVarChar).Value = dwData["ABKKDAUFTNR"];
            or1.Parameters.Add("ABKKDAUFDAT", OracleType.NVarChar).Value = dwData["ABKKDAUFDAT"];
            or1.Parameters.Add("ABKNEUBEN", OracleType.NVarChar).Value = dwData["ABKNEUBEN"];
            or1.Parameters.Add("ABKNEUDAT", OracleType.NVarChar).Value = dwData["ABKNEUDAT"];
            Connect2Proxy(or1);

        }
        public void InsertABPR(DataRow dwData, string ITXDBVERSION = "50.24")
        {

            OracleCommand or1;

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO ABPR(ARMANDANT, ARAUFKRS, ARAUFLFD, ARAUFPOS, ARAFOLGE, ARKZSPR, ARPNRKR, ARPLFDNR, ARBESTKZ, ARWPKZLT, ARMENGE, ARSTAFME, ARGRUPPE, ARWERT, ARMRKM1, ARMWERT1, ARMKZPA1, ARMME1, ARMRKM2, ARMWERT2, ARMKZPA2, ARMME2, ARMRKM3, ARMWERT3, ARMKZPA3, ARMME3, ARMRKM4, ARMWERT4, ARMKZPA4, ARMME4, ARMRKM5, ARMWERT5, ARMKZPA5, ARMME5, ARMRKM6, ARMWERT6, ARMKZPA6, ARMME6, ARMRKM7, ARMWERT7, ARMKZPA7, ARMME7, ARMRKM8, ARMWERT8, ARMKZPA8, ARMME8, ARMRKM9, ARMWERT9, ARMKZPA9, ARMME9, ARMRKM10, ARMWERT10, ARMKZPA10, ARMME10, ARANFART1, ARAWERT1, ARAKZPA1, ARAKZBP1, ARAME1, ARBEMKZ1, ARANFART2, ARAWERT2, ARAKZPA2, ARAKZBP2, ARAME2, ARBEMKZ2, ARANFART3, ARAWERT3, ARAKZPA3, ARAKZBP3, ARAME3, ARBEMKZ3, ARANFART4, ARAWERT4, ARAKZPA4, ARAKZBP4, ARAME4, ARBEMKZ4, ARANFART5, ARAWERT5, ARAKZPA5, ARAKZBP5, ARAME5, ARBEMKZ5, ARANFART6, ARAWERT6, ARAKZPA6, ARAKZBP6, ARAME6, ARBEMKZ6, ARANFART7, ARAWERT7, ARAKZPA7, ARAKZBP7, ARAME7, ARBEMKZ7, ARANFART8, ARAWERT8, ARAKZPA8, ARAKZBP8, ARAME8, ARBEMKZ8, ARANFART9, ARAWERT9, ARAKZPA9, ARAKZBP9, ARAME9, ARBEMKZ9, ARANFART10, ARAWERT10, ARAKZPA10, ARAKZBP10, ARAME10, ARBEMKZ10, ARVALDAT, ARZAHLB, ARPAMABR, ARAUFWRT, ARBERBAS, ARFKNVS, ARFKSPTD, ARFKSPRD, ARKSTTKZ, ARMINMGE, ARMRKMP, ARMWERTP, ARRENR, ARREPOS, ARRPREIS, ARDRZUSCHL, ARBERZUSATZ, ARFFAKKZ, ARWAEHRSL, ARNIXVV, ARABRWERT, ARABRFAE, ARKUNDNR, ARLIEFNR, ARFILLER, ARAENDBEN, ARAENDDAT)"
                + "VALUES (:ARMANDANT, :ARAUFKRS, :ARAUFLFD, :ARAUFPOS, '000', 'N', '  ', '000000', ' ', ' ', 0, ' ', ' ', 0, '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', '    ', 0, ' ', ' ', ' ', ' ', 0, '   ', ' ', '00000000000', ' ', ' ', 0, 0, 'J', 0, '    ', 0, '00000000', '000', 0, ' ', ' ', ' ', '   ', ' ', 0, ' ', '00000000', '        ', '50                                            ', '        ', 0)";

            or1.Parameters.Add("ARMANDANT", OracleType.NVarChar).Value = dwData["ARMANDANT"];
            or1.Parameters.Add("ARAUFKRS", OracleType.NVarChar).Value = dwData["ARAUFKRS"];
            or1.Parameters.Add("ARAUFLFD", OracleType.NVarChar).Value = dwData["ARAUFLFD"];
            or1.Parameters.Add("ARAUFPOS", OracleType.NVarChar).Value = dwData["ARAUFPOS"];
            Connect2Proxy(or1);
        }


        public void InsertABPOS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            DataSet setReturn = new DataSet();
            DataSet setResult = new DataSet();
            DataSet setTemp = new DataSet();
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO ABPOS(ABPMANDANT, ABPAUFKRS, ABPAUFLFD, ABPAUFPOS, ABPVFAUFKRS, ABPVFAUFLFD, ABPVFAUFPOS, ABPAUFART, ABPAUFST, ABPAUFSTV, ABPAUFSTB, ABPAUTO, ABPPRIO, ABPTLVF, ABPDIVARTKZ, ABPKUNDNR, ABPWERK, ABPABT, ABPWAKZ, ABPART, ABPVAR, ABPFARBE, ABPDESS, ABPCOLORIT, ABPBESCHICH, ABPGROE, ABPAUFM, ABPVERP, ABPANZVP, ABPFWARTGRA, ABPFWARTGRP, ABPZLO, ABPZLB, ABPBLO, ABPSME, ABPSOLLMENGE1, ABPSOLLMENGE2, ABPSOLLMENGE3, ABPSOLLMENGE4, ABPSOLLMENGE5, ABPSOLLMENGE6, ABPSOLLMENGE7, ABPSOLLMENGE8, ABPRESMGE, ABPRESKG, ABPRESSTK, ABPZUGET, ABPZUGKG, ABPZUGSTK, ABPDILFM, ABPDIKG, ABPDISTK, ABPZTLGKOMP, ABPSMGKZZU, ABPVLLFM, ABPVLKG, ABPVLSTK, ABPEALFM, ABPEAKG, ABPEASTK, ABPEBLFM, ABPEBKG, ABPEBSTK, ABPABLFM, ABPABKG, ABPABSTK, ABPVSLFM, ABPVSKG, ABPVSSTK, ABPRTLFM, ABPRTKG, ABPRTSTK, ABPROHWDAT, ABPKDDAT, ABPWVDAT, ABPLIEFDAT, ABPLRUECK, ABPLRDATE, ABPDLR, ABPVTRUECK, ABPVTDATE, ABPUNKLAR, ABPVERSDAT, ABPFREIDAT, ABPSTARTDAT, ABPENDDAT, ABPSTARTDATA, ABPENDDATA, ABPLTERMAK, ABPBESTDAT, ABPANRKR, ABPALFDNR, ABPAFOLGEV, ABPAFOLGEB, ABPANRKR2, ABPALFDNR2, ABPAFOLGEV2, ABPAFOLGEB2, ABPANRKR3, ABPALFDNR3, ABPAFOLGEV3, ABPAFOLGEB3, ABPANRKR4, ABPALFDNR4, ABPAFOLGEV4, ABPAFOLGEB4, ABPVERSAEND, ABPVERSZL, ABPTLFREIG, ABPTLFMG, ABPFREIGKZ, ABPLMAFOLGE, ABPENDAUFM, ABPZAUFM, ABPLIEFNR, ABPGESSTA, ABPKDSTA, ABPWSSTA, ABPAPSTA, ABPRZSTA, ABPWPSTA, ABPWBSTA, ABPABSTA, ABPERLKZ, ABPERLDAT, ABPBEWKZ, ABPDRKZ1, ABPDRKZ2, ABPDRKZ3, ABPDRKZ4, ABPDRKZ5, ABPDRKZ6, ABPDRKZ7, ABPDRKZ8, ABPDRKZ9, ABPDRKZ10, ABPDR1USER, ABPDR1DAT, ABPDR8USER, ABPDR8DAT, ABPRETOURZL, ABPRPCOUNTAK, ABPURAUFKRS, ABPURAUFLFD, ABPURAUFPOS, ABPASAUFKRS, ABPASAUFLFD, ABPASAUFPOS, ABPREAFOLGE, ABPRWKRS, ABPRWLFD, ABPSTKNRKR, ABPSERIE, ABPAGBKZ, ABPWAART, ABPANZSTK, ABPZUGETGES, ABPSTKKZ, ABPSTKLG, ABPANZSTKR, ABPABZKZ, ABPBDEKZ, ABPSUBSYS, ABPDATBDE, ABPUHRBDE, ABPDISPOKZ, ABPSCHLICHTE, ABPZZUSATZ, ABPZZUSKZ, ABPSZUSTAND, ABPIZUSTAND, ABPSZUSATZKZ1, ABPSZUSATZKZ2, ABPSZUSATZKZ3, ABPSZUSATZKZ4, ABPWERKE, ABPLBMUSTR, ABPFBMUSTR, ABPREAUFKRS, ABPREAUFLFD, ABPREAUFPOS, ABPLTVORL, ABPFDZ, ABPARTEX, ABPLETEILNR, ABPANSNR, ABPUPOS, ABPTP, ABPLBDENR, ABPTMCOUNT, ABPTMCOUNTAK, ABPKDPARTIE, ABPBAHNKZ, ABPGAENGE, ABPZWTWAHL, ABPDIVWLFM, ABPDIVWKG, ABPDISPOST, ABPKETTAUFT, ABPKETTGARN, ABPSPGRD, ABPSPBENID, ABPSPDAT, ABPLMDAT, ABPLMZT, ABPWPLKZ, ABPKKUNDNR, ABPKLAND, ABPKVB, ABPKVG, ABPKPROGRP, ABPKARTGRP, ABPKVKZ, ABPLAEVON, ABPLAEBIS, ABPSTDLAE, ABPMGV, ABPMGB, ABPPAS, ABPPAI, ABPAZUTEIL, ABPZUTART, ABPFA, ABPGA, ABPQA, ABPMAFZST, ABPQPKTH, ABPQPKTLH, ABPSTKNEUTR, ABPREGEL, ABPSTAFFNR, ABPWERKEKZ, ABPWKSTKRS, ABPWKST, ABPWKART, ABPWMNRKRS, ABPWMLFDNR, ABPWMPOS, ABPWMODNR, ABPWINTV, ABPWKENN, ABPWSTOERGRD, ABPWAKSTKRS, ABPWAKST, ABPWPERSNR, ABPWDATV, ABPWZEITV, ABPWDATB, ABPWZEITB, ABPWSTA, ABPFKALK, ABPLIEFDATN, ABPLAEAENDE, ABPLAEAENDA, ABPDMWAKZ, ABPDMART, ABPDMVAR, ABPDMDESS, ABPDMCOLORIT, ABPDMFARBE, ABPDMBESCHICH, ABPDKART, ABPDKVAR, ABPDKFARBE, ABPDKBRUT, ABPGENEHMKZ, ABPSTUEART, ABPCOMPKZ, ABPPOSTYP, ABPORDER, ABPNPGRUND, ABPREWEIL, ABPFSCHL, ABPKSTKRS, ABPKST, ABPMURW, ABPMUVB, ABPMUFW, ABPMUPF, ABPERSTFB, ABPERSTDR, ABPERSTBE, ABPMUCTOD, ABPKDFREI, ABPREZFB, ABPREZDR, ABPPRUEF, ABPNIXWE, ABPCOLSTA, ABPFBSTA, ABPBAHNNR, ABPBAHNBRT, ABPFLBEDECK, ABPDATABDE, ABPUHRABDE, ABPLOEKZ, ABPTERMDAT, ABPPRFI, ABPPRVAR, ABPPRBE, ABPPRZU, ABPPRDESS, ABPZUSATZ1, ABPZUSATZ2, ABPZUSATZ3, ABPZUSATZ4, ABPZUSATZ5, ABPFLAG1, ABPFLAG2, ABPFLAG3, ABPFLAG4, ABPFLAG5, ABPORGMG, ABPDIFFMG, ABPRARTKZ, ABPSTARTDATN, ABPAESTAT, ABPLBAUFKRS, ABPLBAUFLFD, ABPLBAUFPOS, ABPVEAUFTRAG, ABPREGBLOG, ABPREGBDATE, ABPPROJNR, ABPSHADE, ABPSHADEUNCL, ABPLICHTART, ABPLINE, ABPFILLER1, ABPAENDZL, ABPAENDBEN, ABPAENDDAT, ABPNEUBEN, ABPNEUDAT)"
            + "VALUES (:ABPMANDANT, :ABPAUFKRS, :ABPAUFLFD, :ABPAUFPOS, '  ', '000000', '000',:ABPAUFART, ' ', '0', '0', ' ', '00', '   ', ' ', '00000000', '   ', '   '"
            + ", ' ', '                    ', '   ', '          ', '          ', '          ', '          ', '       ', '  ', '   ', 0, '     ', '  ', '  ', '  ', '  ', '1', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"
            + ", 0, 0, 0, '  ', 0, 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, '  ', '      ', '000', '000', '  ', '000000', 0, 0, '  ', '000000', 0, 0, '  ', '000000', 0, 0, ' ', '006', '000', 0, ' ', '000', '  ', '  ', '        ', 'TE', '10'"
            + ", '20', '30', '40', '50', '60', '70', ' ', 0, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '        ', '00000000', '        ', '00000000', 0, 0, '  ', '000000', '000', '  ', '000000', '000', '000', '  ', '000000'"
            + ", '  ', '  ', ' ', '   ', 0, 0, ' ', 0, 0, ' ', 'N', '  ', 0, 0, ' ', '     ', '          ', ' ', '    ', '    ', ' ', ' ', ' ', ' ', ' ', '   ', '   ', '  ', '000000', '000', '               ', 0, '                                                            '"
            + ", 0, 0, 0, 0, 0, 1, 0, '          ', ' ', 0, 0, 0, 0, ' ', ' ', ' ', '  ', '        ', 0, 0, 0, ' ', '        ', '   ', '   ', '   ', '   ', '   ', ' ', 0, 0, 0, 0, 0, 0, 0, ' ', ' ', 0, 0, 0, 0, 0, 0, ' ', '00000000', '00', ' ', '  ', '0000'"
            + ", '000000', '  ', '0000', '00', '000', '00', '  ', '               ', '  ', '0000', '        ', 0, 0, 0, 0, '  ', ' ', 0, 0, 0, ' ', '                    ', '  ', '          ', '          ', '          ', '          ', '                    '"
            + ", '  ', '  ', 0, ' ', '   ', ' ', '   ', '    ', '   ', '  ', '   ', '  ', '0000', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '0', 0, 0, '00000000', '000000', ' ', '        ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 0"
            + ", 0, 0, 0, 0, 0, 0, ' ', '        ', ' ', '  ', '000000', '000', '               ', 0, 0, '                        ', '   ', ' ', '     ', '   ', '                                                                                                      '"
            + ", 1, '        ', 0,:ABPNEUBEN, :ABPNEUDAT)";
            or1.Parameters.Add("ABPMANDANT", OracleType.NVarChar).Value = dwData["ABPMANDANT"];
            or1.Parameters.Add("ABPAUFKRS", OracleType.NVarChar).Value = dwData["ABPAUFKRS"];
            or1.Parameters.Add("ABPAUFLFD", OracleType.NVarChar).Value = dwData["ABPAUFLFD"];
            or1.Parameters.Add("ABPAUFPOS", OracleType.NVarChar).Value = dwData["ABPAUFPOS"];
            or1.Parameters.Add("ABPAUFART", OracleType.NVarChar).Value = dwData["ABPAUFART"];
            or1.Parameters.Add("ABPNEUBEN", OracleType.NVarChar).Value = dwData["ABPNEUBEN"];
            or1.Parameters.Add("ABPNEUDAT", OracleType.NVarChar).Value = dwData["ABPNEUDAT"];
            Connect2Proxy(or1);
        }
        public void InsertICC_ABPOSFS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            DataSet setReturn = new DataSet();
            DataSet setResult = new DataSet();
            DataSet setTemp = new DataSet();
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO ICC_ABPOSFS(KRS, LFD, SEASON, SECTION, ART, VAR, FARBE, PHOTO, CDES, ARTDES, EXTPRODUCER, STARTDAT, DELDAT, ETDDAT, AETDDAT, CAPP, SMAPP, SZAPP, WAPP1, WAPP2, WAPP3, WAPP4, WAPP5, WAPP6, WAPP7, WAPP8, AAPP1, AAPP2, AAPP3, AAPP4, AAPP5, AAPP6, AAPP7, AAPP8, WCHECK, EXTTECH, FPRICE, TQTY, REMARK, S, M, L, XL)"
                + "VALUES (:KRS,:LFD, null, '          ', :ART, :VAR, :FARBE, '23406090205         .JPG                                                                                                                                                                                ', null, null, '00000011  ', 20130826, 20130920, 0, 0, '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', null, null, null, null, null, null, null, null, null, null, 0, 0, null, 0, 0, 0, 0)";
            or1.Parameters.Add("KRS", OracleType.NVarChar).Value = dwData["KRS"];
            or1.Parameters.Add("LFD", OracleType.NVarChar).Value = dwData["LFD"];
            or1.Parameters.Add("ART", OracleType.NVarChar).Value = dwData["ART"];
            or1.Parameters.Add("VAR", OracleType.NVarChar).Value = dwData["VAR"];
            or1.Parameters.Add("FARBE", OracleType.NVarChar).Value = dwData["FARBE"];
            Connect2Proxy(or1);
        }
        #endregion

        #region======B==============
        public void InsertBABST(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO BABST(BMMANDANT, BMBAUMKRS, BMBAUMLFD, BMKART, BMKVAR, BMFARBE, BMZENSUR, BMZUSTAND, BMSCHLICHTGR, BMSCHLICHTNR, BMBAUMKZ, BMVERWEN, BMHERART, BMFDZ, BMGABED, BMKETTTYP, BMKANTE, BMLO, BMLB, BMLP, BMAUFBKZ, BMDATERL, BMBEM, BMKOLLINR, BMSPSTA, BMSPGRD, BMORGKZ, BMLEER, BMSOLLKZ, BMSOLLLG, BMSOLLGEW, BMSOLLVLG, BMSOLLSTK, BMISTLG, BMISTGEW, BMISTVLG, BMISTSTK, BMRESTLG, BMURISTLG, BMRESTGEW, BMKGNET, BMKGBRUT, BMTARAI, BMTARAA, BMAUFKRS, BMAUFLFD, BMAUFPOS, BMSA, BMAUFTYP, BMFERTKZ, BMPRODLO, BMPRODLB, BMPRODLP, BMPRODAUFBKZ, BMSPPART, BMPARTIE, BMPARTIEKZ, BMDATVW, BMDATDRU, BMDATABG, BMDATRP, BMDATRPM, BMDATANG, BMDATABWEB, BMERSATZKZ, BMKOMBIKZ, BMANZTB, BMBAHNIG, BMPICKUP, BMABAUMKRS, BMABAUMLFD, BMSTKZL, BMBAABGZ, BMAPOS, BMRAFOLGE, BMAUSFFRB, BMTAX, BMSCHIENE, BMMNRKRS, BMMLFDNR, BMMPOS, BMMAPOS, BMDL, BMBEARB, BMZULO, BMZULB, BMZULP, BMZUAUFBKZ, BMRART, BMRVAR, BMRFARBE, BMLIEFNR, BMBESTKZ, BMBNRLIEF, BMEGKZ, BMLIEFSCHNR, BMLIEFDAT, BMRECHNR, BMKLABR, BMEINPR, BMRECHDAT, BMBDEKZ, BMJJJJBDE, BMBNRBDE, BMDATBDE, BMBDEBKZ, BMJJJJMAT, BMBNRMAT, BMDATMAT, BMISOLLLG, BMIISTLG, BMIDIFFLG, BMIDATUM, BMISTATUS, BMIJJJJ, BMIBELEGNR, BMIBPOSVON, BMIBPOSBIS, BMRODA, BMWIND, BMVWMNRKRS, BMVWMLFDNR, BMVWMPOS, BMMUKZ, BMZTERL, BMVERSION, BMKGBRUTGW, BMFILLER, BMAENDZL, BMAENDBEN, BMAENDDAT, BMNEUBEN, BMNEUDAT)"
                + " VALUES (:BMMANDANT, :BMBAUMKRS,:BMBAUMLFD, '                    ', '  ', '          ', ' ', '    ', '     ', '000000000000000', 'Z', 'S', 'S', 0, 'J', '      ', '  ', '  ', '  ', '        ', ' ', 0, '                                        ', '        ', '  ', '  ', 'J', ' ', 'J', 20000, 147017, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '  ', '      ', '   ', '320', 'V', 'E', 'TX', 'BB', '010101  ', ' ', '          ', '0000000', '0', 0, 0, 0, 0, 0, 0, 0, ' ', ' ', 0, 0, 0, '  ', '000000', 0, ' ', '0001', '000', 0, '   ', '     ', 'M ', '2001', '01', '00', ' ', '        ', '  ', '  ', '        ', ' ', '                    ', '  ', '          ', '        ', ' ', '          ', ' ', '        ', 0, '          ', ' ', 0, 0, '0', 0, 0, '0000000000', ' ', 0, 0, 0, 0, 0, 0, 0, ' ', 0, 0, 0, 0, 0, 0, '  ', '0000', '00', ' ', '    ', '0', 0, '                                                            ', 0, '        ', 0, '        ', 0)";
            or1.Parameters.Add("BMMANDANT", OracleType.NVarChar).Value = dwData["BMMANDANT"].ToString();
            or1.Parameters.Add("BMBAUMKRS", OracleType.NVarChar).Value = dwData["BMBAUMKRS"].ToString();
            or1.Parameters.Add("BMBAUMLFD", OracleType.NVarChar).Value = dwData["BMBAUMLFD"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertBAAUF(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO BAAUF(BAMANDANT, BAAUFTYP, BAAUFKRS, BAAUFLFD, BAAUFPOS, BASA, BAPOS, BAAFOLGE, BADATVON, BADATBIS, BAKART, BAKVAR, BAKFARBE, BAMTR1, BAANZ1, BAMTR2, BAANZ2, BAMTR3, BAANZ3, BAMTR4, BAANZ4, BAMTR5, BAANZ5, BAMTR6, BAANZ6, BAMTR7, BAANZ7, BAERLKZ, BABAUMART, BADRKZ, BADISPOKZ, BALO, BALB, BALP, BAAUFBKZ, BAURKVAR, BAAENDZL, BAAENDBEN, BAAENDDAT, BANEUBEN, BANEUDAT, BADOMKZ, BABASMG, BALLEIST, BARLEIST, BASCHIENE, BATLPOS, BAINFOKZ, BAVARKZ, BATLSA, BAABF2, BAZBEDKG, BAZBEDMTR, BAFILLER)"
             + " VALUES (:BAMANDANT, :BAAUFTYP, :BAAUFKRS,:BAAUFLFD, :BAAUFPOS, :BASA, :BAPOS, '010', 0, 0, '                    ', '  ', '          ', 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', '      ', '0', 'B', '  ', '  ', '        ', ' ', '1 ', 9, '        ', 0, '        ', 0, 'D', 0, '    ', '    ', '     ', '00', ' ', ' ', '   ', 0, 0, 0, '                                                 ')";
            or1.Parameters.Add("BAMANDANT", OracleType.NVarChar).Value = dwData["BAMANDANT"].ToString();
            or1.Parameters.Add("BAAUFTYP", OracleType.NVarChar).Value = dwData["BAAUFTYP"].ToString();
            or1.Parameters.Add("BAAUFKRS", OracleType.NVarChar).Value = dwData["BAAUFKRS"].ToString();
            or1.Parameters.Add("BAAUFLFD", OracleType.Number).Value = dwData["BAAUFLFD"].ToString();
            or1.Parameters.Add("BAAUFPOS", OracleType.NVarChar).Value = dwData["BAAUFPOS"].ToString();
            or1.Parameters.Add("BASA", OracleType.NVarChar).Value = dwData["BASA"].ToString();
            or1.Parameters.Add("BAPOS", OracleType.NVarChar).Value = dwData["BAPOS"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertBSSATZ(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO BSSATZ(BSMANDANT, BSKART, BSAENDZL, BSAENDBEN, BSAENDDAT, BSNEUBEN, BSNEUDAT, BSMTART, BSBEZ, BSSTDKVAR, BSSTAKZ, BSMUSTER, BSFARBVW, BSFARBSTUE, BSPFVARN, BSPROGRP, BSARTGRP, BSPMGRP, BSBAUMKZ, BSVERWEN, BSFDZ, BSFDZLEIST, BSKNOTEN, BSFAKTOR, BSSRFNR, BSCADKEY, BSANZTB, BSKRANF, BSKRENDE, BSKRMITTE, BSFDFLGKR, BSKRART, BSSCHAERBR, BSRIETF, BSFDFLGRI, BSBEM, BSZOLLTNR, BSSUBSTGR, BSHANDICAP, BSAFFINITY, BSSUBST1, BSSUBST2, BSBLEACHED, BSCLORINEST, BSFIXTEMP, BSPRODH, BSMATKL, BSPLGRP, BSPLANART, BSEKGRP, BSBSTME, BSVABME, BSEKWSL, BSINKZ, BSINPR, BSBEWAB, BSFILLER)"
                + "VALUES (:BSMANDANT, :BSKART, 0, '        ', 0, :BSNEUBEN, :BSNEUDAT, '    ', '                                        ', '1 ', 'A', 'N', 'J', 'J', ' ', '   ', '   ', '    ', :BSBAUMKZ,:BSVERWEN, 0, 0, 'J', 1000, '               ', '                              ', '00', '          ', '          ', ' ', '           ', '          ', 0, 0, '           ', '                                        ', '                    ', '   ', '   ', '               ', '  ', '  ', ' ', ' ', 0, '                  ', '         ', '  ', '                    ', '   ', '   ', ' ', '    ', ' ', 0, 0, '                                                                ')";
            or1.Parameters.Add("BSMANDANT", OracleType.NVarChar).Value = dwData["BSMANDANT"].ToString();
            or1.Parameters.Add("BSKART", OracleType.NVarChar).Value = dwData["BSKART"].ToString();
            or1.Parameters.Add("BSNEUBEN", OracleType.NVarChar).Value = dwData["BSNEUBEN"].ToString();
            or1.Parameters.Add("BSNEUDAT", OracleType.Number).Value = dwData["BSNEUDAT"].ToString();
            or1.Parameters.Add("BSBAUMKZ", OracleType.NVarChar).Value = dwData["BSBAUMKZ"].ToString();
            or1.Parameters.Add("BSVERWEN", OracleType.NVarChar).Value = dwData["BSVERWEN"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertBHSATZ(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO BHSATZ(BHMANDANT, BHKART, BHKVAR, BHAENDZL, BHAENDBEN, BHAENDDAT, BHNEUBEN, BHNEUDAT, BHFERTKZ, BHLIEFNR, BHFILLER1, BHLAN, BHKUNDNR, BHHERART, BHSTATUS, BHSTAKZ, BHGASTUE, BHBASTUE, BHAUFTR, BHKGNET, BHLGG, BHRSP, BHSCHLIGR1, BHSCHLIGR2, BHSCHLIGR3, BHSCHLIGR4, BHSCHLIGR5, BHSCHLIGR6, BHSCHLIGR7, BHSCHLIGR8, BHSCHLIGR9, BHSCHLIGR10, BHSCHLIGR11, BHSCHLIGR12, BHSCHLIGR13, BHSCHLIGR14, BHSCHLIGR15, BHSCHLINR1, BHSCHLINR2, BHSCHLINR3, BHSCHLINR4, BHSCHLINR5, BHSCHLINR6, BHSCHLINR7, BHSCHLINR8, BHSCHLINR9, BHSCHLINR10, BHSCHLINR11, BHSCHLINR12, BHSCHLINR13, BHSCHLINR14, BHSCHLINR15, BHCADKEY, BHBEM, BHDEKPR, BHZUGMENG, BHVRPR, BHLEPR, BHBWPR1, BHBWPR2, BHBWPR3, BHMATKTO, BHKTO1, BHEG, BHBON, BHZUSCHL11, BHZUSCHL12, BHZUSCHL13, BHZUSCHL21, BHZUSCHL22, BHZUSCHL23, BHABSABF, BHKALABF, BHAUFKZ, BHKETTLG, BHFERTZT, BHWDBSZT, BHDISPOKZ, BHDISPOZR, BHMINBST, BHMAXBST, BHBSLPKT, BHLO, BHLB, BHABCKL, BHSACHDSP, BHPROF, BHPRUEFANW, BHTAX, BHFILLER)"
                + "VALUES ("
            + ":BHMANDANT,:BHKART,:BHKVAR, 0, '        ', 0, :BHNEUBEN, :BHNEUDAT, 'E', '        ', '          ', '                    ', '        ', :BHHERART, 'K', ' ', 'V', ' ', 'N', 0, 0, 0, '1', '1', '1', '1', '1', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '112', '108', '108', '108', '108', '000', '000', '000', '000', '000', '000', '000', '000', '000', '000', '      ', '                                        ', 0, 0, 0, 0, 0, 0, 0, '      ', '      ', ' ', ' ', '        ', '        ', '        ', '        ', '        ', '        ', 10000, 200, ' ', 0, 0, 0, 'B', ' ', 2000, 30000, 0, '  ', '  ', ' ', '        ', 'V', 'J', '   ', '                                                                                                                                            ')";
            or1.Parameters.Add("BHMANDANT", OracleType.NVarChar).Value = dwData["BHMANDANT"].ToString();
            or1.Parameters.Add("BHKART", OracleType.NVarChar).Value = dwData["BHKART"].ToString();
            or1.Parameters.Add("BHKVAR", OracleType.NVarChar).Value = dwData["BHKVAR"].ToString();
            or1.Parameters.Add("BHHERART", OracleType.NVarChar).Value = dwData["BHHERART"].ToString();
            or1.Parameters.Add("BHNEUBEN", OracleType.NVarChar).Value = dwData["BHNEUBEN"].ToString();
            or1.Parameters.Add("BHNEUDAT", OracleType.Number).Value = dwData["BHNEUDAT"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertBSGROE(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO BSGROE(BSGMANDANT, BSGART, BSGMTYP, BSGLFD, BSGAENDZL, BSGAENDBEN, BSGAENDDAT, BSGNEUBEN, BSGNEUDAT, BSGKETTART, BSGMAXLG, BSGMAXGW, BSGLOS, BSGANZTB, BSGLLEIST, BSGRLEIST, BSGFILLER)"
+ "VALUES (:BSGMANDANT, :BSGART,:BSGMTYP, 1, 1, '        ', 0, :BSGNEUBEN, :BSGNEUDAT, :BSGKETTART, 0, 0, 0, 0, '    ', '    ', '                                    ')";
            or1.Parameters.Add("BSGMANDANT", OracleType.NVarChar).Value = dwData["BSGMANDANT"].ToString();
            or1.Parameters.Add("BSGART", OracleType.NVarChar).Value = dwData["BSGART"].ToString();
            or1.Parameters.Add("BSGMTYP", OracleType.NVarChar).Value = dwData["BSGMTYP"].ToString();
            or1.Parameters.Add("BSGKETTART", OracleType.NVarChar).Value = dwData["BSGKETTART"].ToString();
            or1.Parameters.Add("BSGNEUBEN", OracleType.NVarChar).Value = dwData["BSGNEUBEN"].ToString();
            or1.Parameters.Add("BSGNEUDAT", OracleType.Number).Value = dwData["BSGNEUDAT"].ToString();
            setResult = Connect2Proxy(or1);

        }
        public void InsertBSFARB(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO BSFARB(BSFMANDANT, BSFKART, BSFKVAR, BSFKFARBE, BSFKZKETTF, BSFSTATUS, BSFSFKZ, BSFBEZ, BSFTEXTSCHL, BSFFKARTNR, BSFROHFARBE, BSFMUDESS, BSFUNIFARB, BSFZTWAHL, BSFRUESTGRP, BSFPRUEFGRP, BSFFDVF, BSFPRGRP, BSFGRPBEZ, BSFPREIS, BSFZUABPR, BSFZUABAB, BSFNFART, BSFWERT, BSFKZPA, BSFZUABVH, BSFZUABAK, BSFZUABKU, BSFZUABPROZ, BSFFA, BSFGA, BSFQA, BSFQPKTH, BSFQPKTLH, BSFLOAN, BSFLBAN, BSFLPAN, BSFABKZAN, BSFPKL, BSFVBBRT, BSFBRTTOLPL, BSFBRTTOLMI, BSFVBGRQM, BSFVBGRLFD, BSFGWTOLPL, BSFGWTOLMIN, BSFLAEAEND, BSFGWVERL, BSFRESTSCHL, BSFPHWERTMI, BSFPHWERTMA, BSFWEISSGRD, BSFNETZFVON, BSFNETZFBIS, BSFNETZFSEK, BSFRSSFTRKV, BSFRSSFTRKB, BSFUNIFAEH, BSFFADGERAD, BSFMUSTFRB, BSFVORB, BSFNACHB, BSFMU, BSFMURLOD, BSFMUPROD, BSFMUCTOD, BSFMUDTRL, BSFMUBIRL, BSFLMANRKRS, BSFLMALFDNR, BSFLMAPOS, BSFLODKRS, BSFLODLFD, BSFLODPOS, BSFFILLER, BSFAENZL, BSFAENB, BSFAEND, BSFNEUB, BSFNEUD)"
                + "VALUES ("
            + "'" + dwData["BSFMANDANT"].ToString() + "', '" + dwData["BSFKART"].ToString() + "','" + dwData["BSFKVAR"].ToString() + "','" + dwData["BSFKFARBE"].ToString() + "', ' ', 'A', ' ','" + dwData["BSFBEZ"].ToString() + "', '          ', '          ', '          ', '          ', '          ', 0, '   ', ' ', '   '"
            + ", ' ', '                    ', 0, 0, 0, '    ', 0, ' ', 0, 0, 0, ' ', 0, 0, 0, 0, 0, '  ', '  ', '        ', ' ', '  ', 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, ' ', ' ', '          '"
            + ", '   ', '   ', ' ', '00', '00', ' ', 0, '        ', '  ', '0000', '00', '  ', '000000', '000', '                                                              '"
            + ", 1, '        ', 0,'" + dwData["BSFNEUB"].ToString() + "'," + dwData["BSFNEUD"].ToString() + ")";
            /*
            or1.Parameters.Add("BSFMANDANT", OracleType.NVarChar).Value = dwData["BSFMANDANT"].ToString();
            or1.Parameters.Add("BSFKART", OracleType.NVarChar).Value = dwData["BSFKART"].ToString();
            or1.Parameters.Add("BSFKVAR", OracleType.NVarChar).Value = dwData["BSFKVAR"].ToString();
            //or1.Parameters.Add("BSFKFARBE", OracleType.NVarChar).Value = dwData["BSFKFARBE"].ToString();
            //or1.Parameters.Add("BSFBEZ", OracleType.NVarChar).Value = dwData["BSFBEZ"].ToString();
            or1.Parameters.Add("BSFNEUB", OracleType.NVarChar).Value = dwData["BSFNEUB"].ToString();
            or1.Parameters.Add("BSFNEUD", OracleType.Number).Value = dwData["BSFNEUD"].ToString();*/
            setResult = Connect2Proxy(or1);
        }
        public void InsertBASTGA(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;

            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO BASTGA(BAGMANDANT, BAGART, BAGVAR, BAGFARBE, BAGPOS, BAGGART, BAGGVAR, BAGGFARBE, BAGFDZ, BAGABF, BAGKGNET, BAGKGBRUT, BAGDISPOKZ, BAGBEM, BAGVARKZ, BAGAUFMSL, BAGFILLER)"
                + "VALUES (:BAGMANDANT, :BAGART, :BAGVAR, :BAGFARBE, :BAGPOS, 'J100                ', '3  ', '          ', 8308, 0, 98126, 98126, 'B', '                    ', ' ', '  ', '                  ')";
            or1.Parameters.Add("BAGMANDANT", OracleType.NVarChar).Value = dwData["BAGMANDANT"].ToString();
            or1.Parameters.Add("BAGART", OracleType.NVarChar).Value = dwData["BAGART"].ToString();
            or1.Parameters.Add("BAGVAR", OracleType.NVarChar).Value = dwData["BAGVAR"].ToString();
            or1.Parameters.Add("BAGFARBE", OracleType.NVarChar).Value = dwData["BAGFARBE"].ToString();
            or1.Parameters.Add("BAGPOS", OracleType.NVarChar).Value = dwData["BAGPOS"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertBASTGAD(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;

            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO BASTGAD(BAGMANDANT, BAGART, BAGVAR, BAGFARBE, BAGPOS, BAGGART, BAGGVAR, BAGGFARBE, BAGFDZ, BAGABF, BAGKGNET, BAGKGBRUT, BAGDISPOKZ, BAGBEM, BAGVARKZ, BAGAUFMSL, BAGFILLER)"
                + "VALUES (:BAGMANDANT, :BAGART, :BAGVAR, :BAGFARBE, :BAGPOS, 'J100                ', '3  ', '          ', 8308, 0, 98126, 98126, 'B', '                    ', ' ', '  ', '                  ')";
            or1.Parameters.Add("BAGMANDANT", OracleType.NVarChar).Value = dwData["BAGMANDANT"].ToString();
            or1.Parameters.Add("BAGART", OracleType.NVarChar).Value = dwData["BAGART"].ToString();
            or1.Parameters.Add("BAGVAR", OracleType.NVarChar).Value = dwData["BAGVAR"].ToString();
            or1.Parameters.Add("BAGFARBE", OracleType.NVarChar).Value = dwData["BAGFARBE"].ToString();
            or1.Parameters.Add("BAGPOS", OracleType.NVarChar).Value = dwData["BAGPOS"].ToString();
            setResult = Connect2Proxy(or1);
        }
        #endregion

        #region======C==============
        #endregion

        #region======D==============
        #endregion

        #region======E==============
        public void InsertEKKOPF(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO EKKOPF(EKKMANDANT, EKKAUFKRS, EKKAUFLFD, EKKAENZL, EKKAENB, EKKAEND, EKKNEUB, EKKNEUD, EKKAUFGRP, EKKAUFART, EKKARTGR, EKKZEICH, EKKAKKRED, EKKSACHB, EKKRSTBEZ, EKKLIEFKOMP, EKKLIEFNR, EKKBADR, EKKLADR, EKKRADR, EKKKONDSL, EKKWAEHRSL, EKKPREISLST, EKKKNTRNRL, EKKKOKRS, EKKKOLFD, EKKBDAT, EKKDATV, EKKDATB, EKKANLFRLNR, EKKADRZU, EKKLO, EKKLB, EKKLP, EKKLIZENZME, EKKVERBRME, EKKME1, EKKME2, EKKME3, EKKME4, EKKME5, EKKME6, EKKME7, EKKME8, EKKME9, EKKME10, EKKWE1, EKKWE2, EKKWE3, EKKWE4, EKKWE5, EKKWE6, EKKWE7, EKKWE8, EKKWE9, EKKWE10, EKKGESSTA, EKKEINSTA, EKKBUCHKRS, EKKABLADEST, EKKATEXTSL, EKKSTKZAEHL, EKKRABART1, EKKRABPROZ1, EKKRABART2, EKKRABPROZ2, EKKRABART3, EKKRABPROZ3, EKKRABART4, EKKRABPROZ4, EKKRABART5, EKKRABPROZ5, EKKZUAB1, EKKZUABPR1, EKKZUABWE1, EKKZUABME1, EKKABRKZ1, EKKZUAB2, EKKZUABPR2, EKKZUABWE2, EKKZUABME2, EKKABRKZ2, EKKZUAB3, EKKZUABPR3, EKKZUABWE3, EKKZUABME3, EKKABRKZ3, EKKZUAB4, EKKZUABPR4, EKKZUABWE4, EKKZUABME4, EKKABRKZ4, EKKZUAB5, EKKZUABPR5, EKKZUABWE5, EKKZUABME5, EKKABRKZ5, EKKZUARTF, EKKZUABPRF, EKKZUABWEF, EKKMEEHF, EKKABRKZF, EKKZUARTV, EKKZUABPRV, EKKZUABWEV, EKKMEEHV, EKKABRKZV, EKKVERSICH, EKKEDIKZ, EKKKOMMNR, EKKEDIDAT, EKKEDIZEIT, EKKABSAUFART, EKKFILLER)"
            + " VALUES (:EKKMANDANT,:EKKAUFKRS, :EKKAUFLFD, 4, 'JANE    ', 20081126, 'JANE    ', 20081126, 'B', 'BE', '8', '              ', '               ', 'JANE    ', '      ', 'N', '00009003', ' ', ' ', ' ', 'STD ', 'RMB', '     ', '               ', '  ', '      ', 20081111, 0, 0, '        ', '    ', '01', '  ', '        ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5464000, 0, 0, 0, 0, 0, 0, 0, 0, 0, '  ', '  ', '   ', '    ', '   ', '0000', '   ', 0, '   ', 0, '   ', 0, '   ', 0, '   ', 0, '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', 0, ' ', '                    ', 0, 0, '  ', '                               ')";
            or1.Parameters.Add("EKKMANDANT", OracleType.NVarChar).Value = dwData["EKKMANDANT"].ToString();
            or1.Parameters.Add("EKKAUFKRS", OracleType.NVarChar).Value = dwData["EKKAUFKRS"].ToString();
            or1.Parameters.Add("EKKAUFLFD", OracleType.NVarChar).Value = dwData["EKKAUFLFD"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertEKPOS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO EKPOS(EKPSA, EKPMANDANT, EKPAUFKRS, EKPAUFLFD, EKPAUFPOS, EKPAENDST, EKPAENZL, EKPAENB, EKPAEND, EKPNEUB, EKPNEUD, EKPAUFGRP, EKPAUFART, EKPARTGR, EKPKUNDNR, EKPWERK, EKPABT, EKPWAKZ, EKPART, EKPVAR, EKPFARBE, EKPDESS, EKPCOL, EKPBESCH, EKPZUSTAND, EKPGROE, EKPSCHLIGR, EKPSCHLINR, EKPLSART, EKPLSVAR, EKPLSFB, EKPLSDESS, EKPLSCOL, EKPLSBE, EKPLSZUSTAND, EKPLSGROE, EKPLSGRPBEZ, EKPLSARTBEZ, EKPSTKLGV, EKPSTKLGB, EKPPRKZ, EKPPRUEF, EKPMATKOMPDR, EKPPARTIE, EKPSPUL, EKPSPULG, EKPSPULM, EKPVPEINH, EKPAM, EKPZUSAM, EKPHUELSE, EKPKF, EKPFDRES, EKPWI, EKPANZTKB, EKPLOSGR, EKPWIRKGEW, EKPVKUNDNR, EKPVWERK, EKPVABT, EKPVART, EKPVVAR, EKPVFARBE, EKPEKUNDNR, EKPEWERK, EKPEABT, EKPEART, EKPEVAR, EKPEFARBE, EKPEDESS, EKPECOL, EKPEBESCH, EKPEZUSTAND, EKPEGROE, EKPMINLIME, EKPMINLISP, EKPMEEH, EKPMEEHGRP, EKPMEEHFKT, EKPME1, EKPME2, EKPME3, EKPME4, EKPME5, EKPME6, EKPME7, EKPME8, EKPME9, EKPMEO, EKPMEU, EKPSMENGE, EKPWE1, EKPWE2, EKPWE3, EKPWE4, EKPWE5, EKPWE6, EKPWE7, EKPWE8, EKPWE9, EKPBDAT, EKPLTERM, EKPFIX, EKPLDAT, EKPDRUDAT, EKPWVTERM, EKPWUTERM, EKPVEINDAT, EKPVEINDALT, EKPLTERMBE, EKPLTERMKZ, EKPVTERMIN, EKPVTERMEIN, EKPDATVON, EKPBEDAT, EKPTERMTAB, EKPTERMIND, EKPSOLLDAT1, EKPISTDAT1, EKPSOLLDAT2, EKPISTDAT2, EKPSOLLDAT3, EKPISTDAT3, EKPSOLLDAT4, EKPISTDAT4, EKPSOLLDAT5, EKPISTDAT5, EKPSOLLDAT6, EKPISTDAT6, EKPLRUECK, EKPPRME, EKPPREH, EKPPREHGRP, EKPPREHFKT, EKPPRDR, EKPPREISKZ, EKPPREISLST, EKPRABATTKZ, EKPRABATT, EKPRABART1, EKPRABPROZ1, EKPRABWERT1, EKPRABART2, EKPRABPROZ2, EKPRABWERT2, EKPRABART3, EKPRABPROZ3, EKPRABWERT3, EKPRABART4, EKPRABPROZ4, EKPRABWERT4, EKPRABART5, EKPRABPROZ5, EKPRABWERT5, EKPZUAB1, EKPZUABPR1, EKPZUABWE1, EKPZUABME1, EKPABRKZ1, EKPZUAB2, EKPZUABPR2, EKPZUABWE2, EKPZUABME2, EKPABRKZ2, EKPZUAB3, EKPZUABPR3, EKPZUABWE3, EKPZUABME3, EKPABRKZ3, EKPZUAB4, EKPZUABPR4, EKPZUABWE4, EKPZUABME4, EKPABRKZ4, EKPZUAB5, EKPZUABPR5, EKPZUABWE5, EKPZUABME5, EKPABRKZ5, EKPZUABWERT, EKPFIXBONP, EKPFIXBONA, EKPKALBONP, EKPKALBONA, EKPCOUPON, EKPKOKRS, EKPKOLFD, EKPKOPOS, EKPSTA, EKPSTAKZ, EKPMAHNKZ, EKPMAHNKZA, EKPMAHNDAT, EKPKTOKL4, EKPKSTKRS, EKPKST, EKPBUDGET, EKPINVAUF, EKPFAUFTYP, EKPFAUFKRS, EKPFAUFLFD, EKPFAUFPOS, EKPANRKR, EKPALFDNR, EKPWAEHRSL, EKPKURS, EKPBETRAG, EKPHWAEHRSL, EKPHEUROKURS, EKPHEUROKURSVK, EKPFEUROKURS, EKPFEUROKURSVK, EKPTERMNR, EKPFAELLIG, EKPSICHER, EKPSICHP, EKPAKKRED, EKPUDATUM, EKPUAENZL, EKPUAENB, EKPLIEFNR, EKPKONDSL, EKPLO, EKPLB, EKPLPLATZ, EKPLIEFERSCH, EKPZOLLSL, EKPIMEXSL, EKPKNTRNRL, EKPLIEFKOMP, EKPABRUF, EKPSACHB, EKPLEBKZ, EKPSPERR, EKPWIEBEST, EKPBEKZ, EKPPOSTYP, EKPGESSTA, EKPEINSTA, EKPZENSUR, EKPTEXTKON, EKPMCODE, EKPGENBENID1, EKPGENDAT1, EKPGENBENID2, EKPGENDAT2, EKPGENBENID3, EKPGENDAT3, EKPGENSTUFE, EKPGENOFFEN, EKPABLADEST, EKPVERBENID, EKPWEMAIL, EKPURLAND, EKPETIDR, EKPCHAR, EKPGNR, EKPZUARTF, EKPZUABPRF, EKPZUABWEF, EKPMEEHF, EKPABRKZF, EKPZUARTV, EKPZUABPRV, EKPZUABWEV, EKPMEEHV, EKPABRKZV, EKPVERSICH, EKPEDIKZ, EKPKOMMNR, EKPKOMMPOS, EKPEDIDAT, EKPEDIZEIT, EKPURBESTPOS, EKPVERTRNRK, EKPVERTRPOSK, EKPTERMSTA, EKPKONTSTA, EKPZUABSTA, EKPEXMANDANT, EKPWVTERMVG, EKPFILLER14)"
            + " VALUES ('PO', :EKPMANDANT, :EKPAUFKRS, :EKPAUFLFD, :EKPAUFPOS, '000', 1, 'INTEXE  ', 20130808, 'INTEXE  ', 20130808, 'B', 'BE', '8', '        ', '   ', '   ', ' ', '3030303030303030303030303031202020202020', '303030', '20202020202020202020', '          ', '          ', '          ', '    ', '       ', '     ', '000000000000000', '                    ', '   ', '          ', '          ', '          ', '          ', '    ', '       ', '                    ', '                                        ', 0, 0, ' ', '    ', 'J', '       ', 0, 0, 0, '    ', '  ', '  ', '      ', ' ', ' ', ' ', 0, 0, 0, '        ', '   ', '   ', '2020202020202020202020202020202020202020', '202020', '20202020202020202020', '        ', '   ', '   ', '                    ', '   ', '          ', '          ', '          ', '          ', '    ', '       ', 0, 0, 'KG ', '4', '000001000000', 123400, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1234000, 0, 0, 0, 0, 0, 0, 0, 0, 20081111, 20130808, ' ', '08.08.13', 0, 20130920, 20130808, 20130927, 20130808, 0, ' ', 0, '        ', 0, 0, 'POS ', 0, 20130920, 0, 20130927, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0000010000', 'KG ', '4', '000001000000', 'J', 'N.', '     ', ' ', 0, '   ', 0, 0, '   ', 0, 0, '   ', 0, 0, '   ', 0, 0, '   ', 0, 0, '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', 0, 0, 0, 0, 0, ' ', '  ', '      ', '   ', '  ', 'I', '  ', '  ', 0, '000000', '  ', '0000', '        ', '00000000', ' ', '  ', '000000', '000', '  ', '000000', 'RMB', 10000, 1, 'RMB', 0, ' ', 0, ' ', 0, 0, '0', 0, '               ', 0, 0, '        ', '00009003', 'STD ', '01', '  ', '        ', '        ', ' ', ' ', '               ', ' ', ' ', 'JANE    ', ' ', ' ', '        ', ' ', '   ', '  ', '10', ' ', '              ', '              ', '        ', 0, '        ', 0, '        ', 0, 0, '        ', '    ', '        ', ' ', '   ', ' ', 0, 0, '   ', 0, 0, '   ', ' ', '   ', 0, 0, '   ', ' ', 0, ' ', '                    ', '0000', 0, 0, '000', '                    ', '0000', '20', '30', '40', '  ', ' ', '00000000               00000000 00000000       000000000                ')";
            or1.Parameters.Add("EKPMANDANT", OracleType.NVarChar).Value = dwData["EKPMANDANT"].ToString();
            or1.Parameters.Add("EKPAUFKRS", OracleType.NVarChar).Value = dwData["EKPAUFKRS"].ToString();
            or1.Parameters.Add("EKPAUFLFD", OracleType.NVarChar).Value = dwData["EKPAUFLFD"].ToString();
            or1.Parameters.Add("EKPAUFPOS", OracleType.NVarChar).Value = dwData["EKPAUFPOS"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertEKVRECH(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO EKVRECH(EKVMANDANT, EKVABLAGE, EKVBELEG, EKVLIEFNR, EKVRECHNR, EKVBETRAG, EKVWAEHRSL, EKVKST, EKVEMPF, EKVKIR, EKVABRECHKZ, EKVFILLER, EKVAENDZL, EKVAENDBEN, EKVAENDDAT, EKVNEUBEN, EKVNEUDAT)"
            + " VALUES (:EKVMANDANT, :EKVABLAGE, :EKVBELEG, '00000003', 'WP237-1   ', 23400, 'RMB', 0, 'BATCH   ', ' ', ' ', '                       ', 1, 'INTEXE  ', 20140304, 'INTEXE  ', 20140304)";
            or1.Parameters.Add("EKVMANDANT", OracleType.NVarChar).Value = dwData["EKVMANDANT"].ToString();
            or1.Parameters.Add("EKVABLAGE", OracleType.NVarChar).Value = dwData["EKVABLAGE"].ToString();
            or1.Parameters.Add("EKVBELEG", OracleType.NVarChar).Value = dwData["EKVBELEG"].ToString();
            Connect2Proxy(or1);
        }
        #endregion

        #region======F==============
        public void InsertFDECK(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO FDECK(FDMANDANT, FDSA, FDAUFKRS, FDAUFLFD, FDAUFPOS, FDTYP, FDAFOLGE, FDSETPOS, FDART, FDVAR, FDFARBE, FDGROE, FDAUFM, FDVPEINH, FDZS, FDDAT, FDLO, FDLB, FDLP, FDAUFBKZ, FDMENGE, FDZUGET, FDFREIG, FDVERBR, FDRESERV, FDKOMMISS, FDSETANZ, FDERLKZ, FDDISPOKZ, FDABRKZ, FDFILLER)"
                + " VALUES (:FDMANDANT, :FDSA, :FDAUFKRS, :FDAUFLFD, :FDAUFPOS,:FDTYP, :FDAFOLGE, :FDSETPOS, 'FLT-G100            ', '  ', '          ', '14X3   ', '  ', '   ', '1 ', 20080920, '  ', '  ', '        ', ' ', 0, 0, 0, 0, 0, 0, 1, ' ', 'B', 'E', ' 0000                               ')";
            or1.Parameters.Add("FDMANDANT", OracleType.NVarChar).Value = dwData["FDMANDANT"].ToString();
            or1.Parameters.Add("FDSA", OracleType.NVarChar).Value = dwData["FDSA"].ToString();
            or1.Parameters.Add("FDAUFKRS", OracleType.NVarChar).Value = dwData["FDAUFKRS"].ToString();
            or1.Parameters.Add("FDAUFLFD", OracleType.NVarChar).Value = dwData["FDAUFLFD"].ToString();
            or1.Parameters.Add("FDAUFPOS", OracleType.NVarChar).Value = dwData["FDAUFPOS"].ToString();
            or1.Parameters.Add("FDTYP", OracleType.NVarChar).Value = dwData["FDTYP"].ToString();
            or1.Parameters.Add("FDAFOLGE", OracleType.NVarChar).Value = dwData["FDAFOLGE"].ToString();
            or1.Parameters.Add("FDSETPOS", OracleType.NVarChar).Value = dwData["FDSETPOS"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertFSSTUELI(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO FSSTUELI(FSSMANDANT, FSSART, FSSPOS, FSSAENZL, FSSAENB, FSSAEND, FSSNEUB, FSSNEUD, FSSVAR, FSSFARBE, FSSGROE, FSSAUFM, FSSVERP, FSSKONTR, FSSPOSTYP, FSSFKUNDNR, FSSMATKZ, FSSKUNDNR, FSSWERK, FSSABT, FSSMART, FSSMVAR, FSSMFARBE, FSSDESS, FSSCOL, FSSBESCH, FSSMGROE, FSSMAUFM, FSSMVERP, FSSVERBR, FSSVBME, FSSVBGRP, FSSVBFKT, FSSVERL, FSSVBKZ, FSSDKZ, FSSPSEUDO, FSSLO, FSSABRKZ, FSSAUFKZ, FSSMODKZ, FSSZUSCHN, FSSTEXT, FSSREFMOD, FSSRMODPOS, FSSREFART, FSSRARTPOS, FSSSW1, FSSSW2, FSSSW3, FSSSW4, FSSSW5, FSSTVERBR1, FSSTVERBR2, FSSTVERBR3, FSSTVERBR4, FSSTVERBR5, FSSTVERBR6, FSSTVERBR7, FSSTVERBR8, FSSTVERBR9, FSSTVERBR10, FSSTVERBR11, FSSTVERBR12, FSSTVERBR13, FSSTVERBR14, FSSTVERBR15, FSSTVERBR16, FSSTVERBR17, FSSTVERBR18, FSSTVERBR19, FSSTVERBR20, FSSTVERBR21, FSSTVERBR22, FSSTVERBR23, FSSTVERBR24, FSSTVERBR25, FSSTVERBR26, FSSTVERBR27, FSSTVERBR28, FSSTVERBR29, FSSTVERBR30, FSSTVERBR31, FSSTVERBR32, FSSTVERBR33, FSSTVERBR34, FSSTVERBR35, FSSTVERBR36, FSSTVERBR37, FSSTVERBR38, FSSTVERBR39, FSSTVERBR40, FSSTVERBR41, FSSTVERBR42, FSSTVERBR43, FSSTVERBR44, FSSTVERBR45, FSSTVERBR46, FSSTVERBR47, FSSTVERBR48, FSSVKNPOS, FSSPGLKZ, FSSFILLER)"
                + " VALUES (:FSSMANDANT, :FSSART, :FSSPOS, 1, 'INTEXE  ', 20080527, 'INTEXE  ', 20080522, '  ', :FSSFARBE, :FSSGROE, '  ', '   ', ' ', 'M', '        ', :FSSMATKZ, '00000000', '   ', '   ', :FSSMART, :FSSMVAR,:FSSMFARBE, '          ', '          ', '          ', :FSSMGROE, '  ', '   ', :FSSVERBR, :FSSVBME, :FSSVBGRP, '000001000000', :FSSVERL, ' ', ' ', '     ', '  ', 'E', ' ', ' ', ' ', '   ', '                    ', 0, '                    ', 0, ' ', ' ', ' ', ' ', ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', '                                          ')";
            or1.Parameters.Add("FSSMANDANT", OracleType.NVarChar).Value = dwData["FSSMANDANT"].ToString();
            or1.Parameters.Add("FSSART", OracleType.NVarChar).Value = dwData["FSSART"].ToString();
            or1.Parameters.Add("FSSPOS", OracleType.NVarChar).Value = dwData["FSSPOS"].ToString();
            or1.Parameters.Add("FSSFARBE", OracleType.NVarChar).Value = dwData["FSSFARBE"].ToString();
            or1.Parameters.Add("FSSGROE", OracleType.NVarChar).Value = dwData["FSSGROE"].ToString();
            or1.Parameters.Add("FSSMATKZ", OracleType.NVarChar).Value = dwData["FSSMATKZ"].ToString();
            or1.Parameters.Add("FSSMART", OracleType.NVarChar).Value = dwData["FSSMART"].ToString();
            or1.Parameters.Add("FSSMVAR", OracleType.NVarChar).Value = dwData["FSSMVAR"].ToString();
            or1.Parameters.Add("FSSMFARBE", OracleType.NVarChar).Value = dwData["FSSMFARBE"].ToString();
            or1.Parameters.Add("FSSMGROE", OracleType.NVarChar).Value = dwData["FSSMGROE"].ToString();
            or1.Parameters.Add("FSSVERBR", OracleType.NVarChar).Value = dwData["FSSVERBR"].ToString();
            or1.Parameters.Add("FSSVBME", OracleType.NVarChar).Value = dwData["FSSVBME"].ToString();
            or1.Parameters.Add("FSSVBGRP", OracleType.NVarChar).Value = dwData["FSSVBGRP"].ToString();
            or1.Parameters.Add("FSSVERL", OracleType.NVarChar).Value = dwData["FSSVERL"].ToString();
            Connect2Proxy(or1);
        }

        public void InsertFBST(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO FBST(FBMANDANT, FBART, FBVAR, FBFARBE, FBGROE, FBAUFM, FBVPEINH, FBANZVP, FBZS, FBCHAR, FBGNR, FBGNRPOS, FBLO, FBLB, FBLP, FBME, FBZUME, FBAUFBKZ, FBCHARL, FBCHARLZUS, FBSPKZ, FBSPSTA, FBSPGRD, FBFILLER, FBAENDZL)"
            + " VALUES (:FBMANDANT, :FBART, :FBVAR, :FBFARBE, :FBGROE, '  ', '   ', '0000', '1A',:FBCHAR, '0000', '0000', :FBLO, :FBLB, :FBLP, 1, 0, 'N', '               ', '               ', ' ', '  ', '  ', '                                                                           ', 6)";
            or1.Parameters.Add("FBMANDANT", OracleType.NVarChar).Value = dwData["FBMANDANT"].ToString();
            or1.Parameters.Add("FBART", OracleType.NVarChar).Value = dwData["FBART"].ToString();
            or1.Parameters.Add("FBVAR", OracleType.NVarChar).Value = dwData["FBVAR"].ToString();
            or1.Parameters.Add("FBFARBE", OracleType.NVarChar).Value = dwData["FBFARBE"].ToString();
            or1.Parameters.Add("FBGROE", OracleType.NVarChar).Value = dwData["FBGROE"].ToString();
            or1.Parameters.Add("FBCHAR", OracleType.NVarChar).Value = dwData["FBCHAR"].ToString();
            or1.Parameters.Add("FBLO", OracleType.NVarChar).Value = dwData["FBLO"].ToString();
            or1.Parameters.Add("FBLB", OracleType.NVarChar).Value = dwData["FBLB"].ToString();
            or1.Parameters.Add("FBLP", OracleType.NVarChar).Value = dwData["FBLP"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertFGBST(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO FGBST(FGMANDANT, FGSA, FGART, FGVAR, FGFARBE, FGGROE, FGAUFM, FGVPEINH, FGZS, FGLO, FGMJJ, FGMM, FGAKTKZ, FGME01, FGME10, FGME11, FGME12, FGME13, FGME19, FGME20, FGME21, FGME24, FGME31, FGME32, FGME33, FGME34, FGME35, FGME36, FGME42, FGME43, FGME46, FGME47, FGME52, FGME53, FGME55, FGME56, FGMEIV, FGME76, FGME79, FGME80, FGME88, FGME89, FGME90, FGME91, FGRE01, FGRE02, FGRE03, FGRE04, FGRE05, FGRE06, FGRE07, FGRE08, FGRE09, FGRE10, FGBSTKMA, FGBSTKME, FGBSTVMA, FGBSTVME, FGBSTA, FGBSTAN, FGBSTMA, FGBSTME, FGINDAT, FGINBST, FGINALT, FGEKPRMA, FGEKPRME, FGEKPRZU, FGVRPR, FGDLABST, FGDLATAG, FGMINBST, FGMAXBST, FGFERTKZ, FGUEBER, FGFILLER, FGAENDZL, FGAENDBEN, FGAENDDAT)"
+ " VALUES (:FGMANDANT, '00',:FGART, :FGVAR, :FGFARBE, :FGGROE, '  ', '   ', '1A', :FGLO, :FGMJJ, :FGMM, 'A', 0, 0, 0, 0, 358, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 358, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 358, 0, 0, 358, 0, 0, 0, 0, 0, 0, 0, 230, '17', 30, 358, 'F', 'N', '                         ', 20, 'YCAV    ', 20140217)";
            or1.Parameters.Add("FGMANDANT", OracleType.NVarChar).Value = dwData["FGMANDANT"].ToString();
            or1.Parameters.Add("FGART", OracleType.NVarChar).Value = dwData["FGART"].ToString();
            or1.Parameters.Add("FGVAR", OracleType.NVarChar).Value = dwData["FGVAR"].ToString();
            or1.Parameters.Add("FGFARBE", OracleType.NVarChar).Value = dwData["FGFARBE"].ToString();
            or1.Parameters.Add("FGGROE", OracleType.NVarChar).Value = dwData["FGGROE"].ToString();
            or1.Parameters.Add("FGLO", OracleType.NVarChar).Value = dwData["FGLO"].ToString();
            or1.Parameters.Add("FGMJJ", OracleType.NVarChar).Value = dwData["FGMJJ"].ToString();
            or1.Parameters.Add("FGMM", OracleType.NVarChar).Value = dwData["FGMM"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertFBEW(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO FBEW(FBWMANDANT, FBWJJJJ, FBWBELEG, FBWLFDNR, FBWART, FBWVAR, FBWFARBE, FBWGROE, FBWAUFM, FBWCHAR, FBWGNR, FBWGNRPOS, FBWVPEINH, FBWANZVP, FBWZS, FBWLO, FBWLB, FBWLP, FBWAUFBKZ, FBWAUFTYP, FBWAUFKRS, FBWAUFLFD, FBWAUFPOS, FBWAFOLGE, FBWTEILNR, FBWKSTKRS, FBWKST, FBWMNRKRS, FBWMLFDNR, FBWMPOS, FBWSCHICHT, FBWAPOS, FBWSETPOS, FBWBUDGET, FBWFCODE, FBWBS, FBWWERTDAT, FBWME, FBWWERT, FBWWEKORR, FBWBUCHBEN, FBWBUCHDAT, FBWBUCHUHR, FBWFC, FBWINVBLG, FBWCHARL, FBWCHARLZUS, FBWSTORKZ, FBWKONDAT, FBWMATABR, FBWDISPOKZ, FBWSAPKZ, FBWACTION, FBWFILLER)"
                + " VALUES (:FBWMANDANT, :FBWJJJJ, :FBWBELEG, :FBWLFDNR, 'B08F3BS002          ', '  ', 'L         ', '0120   ', '  ', '0000306', '0000', '0000', '   ', '0000', '1A', '01', '01', '01      ', 'N', 'B', 'FP', '000166', '006', '000', '0000', '  ', '0000', '  ', '0000', '00', '0', '0000', '0000', '        ', '   ', '11', 20131223, 58, 0, '  ', 'LUYJ    ', 20131223, 9270247, 'FB04    ', 0, '               ', '               ', ' ', 0, ' ', ' ', ' ', '  ', '                                                                             ')";
            or1.Parameters.Add("FBWMANDANT", OracleType.NVarChar).Value = dwData["FBWMANDANT"].ToString();
            or1.Parameters.Add("FBWJJJJ", OracleType.NVarChar).Value = dwData["FBWJJJJ"].ToString();
            or1.Parameters.Add("FBWBELEG", OracleType.NVarChar).Value = dwData["FBWBELEG"].ToString();
            or1.Parameters.Add("FBWLFDNR", OracleType.NVarChar).Value = dwData["FBWLFDNR"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertFCHAR(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO FCHAR(FCMANDANT, FCCHAR, FCART, FCVAR, FCFARBE, FCGROE, FCAUFM, FCZS, FCEINDAT, FCENTKZ, FCEINLO, FCSPSTA, FCSPGRD, FCME, FCEME, FCEGEB, FCGNRL, FCGNRLPOS, FCLIEFNR, FCLIEFSCH, FCLIEFDAT, FCKZZOLL, FCGEBANZ, FCVPEINH, FCAUFTYP, FCBESTKRS, FCBESTLFD, FCBESTPOS, FCABHS, FCBUDGET, FCRENR, FCREDAT, FCREWERT, FCKZKONSI, FCSTKNR, FCFCODE, FCFILLER, FCAENDZL, FCAENDBEN, FCAENDDAT, FCNEUBEN, FCNEUDAT)"
            + " VALUES (:FCMANDANT, :FCCHAR, '24110040018         ', '  ', '1010      ', 'L      ', '  ', '1A', 20140121, ' ', '01', '  ', '  ', 87, 87, ' ', 0, 0, '00000000', '          ', 0, ' ', 0, '   ', 'V', :FCBESTKRS,:FCBESTLFD, :FCBESTPOS, 0, '        ', '          ', 0, 0, ' ', '            ', '   ', '                                                              ', 1, 'YANGJ   ', 20140121, 'YANGJ   ', 20140121)";
            or1.Parameters.Add("FCMANDANT", OracleType.NVarChar).Value = dwData["FCMANDANT"].ToString();
            or1.Parameters.Add("FCCHAR", OracleType.NVarChar).Value = dwData["FCCHAR"].ToString();
            or1.Parameters.Add("FCBESTKRS", OracleType.NVarChar).Value = dwData["FCBESTKRS"].ToString();
            or1.Parameters.Add("FCBESTLFD", OracleType.NVarChar).Value = dwData["FCBESTLFD"].ToString();
            or1.Parameters.Add("FCBESTPOS", OracleType.NVarChar).Value = dwData["FCBESTPOS"].ToString();
            Connect2Proxy(or1);
        }
        #endregion

        #region======G==============
        public void InsertGAAUF(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            //GSCMANDANT  GSCART GSCVAR GSCFARBE
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO GAAUF(GAMANDANT, GAAUFKRS, GAAUFLFD, GAAUFPOS, GASA, GAPOS, GAAENDZL, GAAENDBEN, GAAENDDAT, GANEUBEN, GANEUDAT, GADATVON, GADATBIS, GADATVON1, GADATBIS1, GAART, GAVAR, GAFARBE, GAURVAR, GADEZI, GAKG1, GASP1, GAKA1, GAKG2, GASP2, GAKA2, GAKG3, GASP3, GAKA3, GAKG4, GASP4, GAKA4, GAKG5, GASP5, GAKA5, GAKG6, GASP6, GAKA6, GAKG7, GASP7, GAKA7, GAABF, GAERLKZ, GADISPOKZ, GALO, GALB, GALP, GAAUFBKZ, GABEM, GAVPEINH, GAHUELSE, GAANZBAUM, GASPUL, GALAENGE, GASPULGEW, GAAG, GAPRODV, GAAUFMSL, GAKF, GAFDRES, GAWICKL, GASACHB, GAANLO, GAANLB, GAANLP, GAANAUFBKZ, GALIEFSCH, GAFREIDAT, GAFREIBEN, GALIEFNR, GAMATKOMPDR, GAFUSSTEXT, GAAFOLGE, GAAUFTRKZ, GABDEKZ, GABASMG2, GABRUTTOKZ, GAERSATZ, GAURSA, GAURPOS, GATLSA, GATLPOS, GAINFOKZ, GADECKUNG, GAUSERZK, GAVARKZ, GAZUKOMP, GAAFDLGS, GAAFDLGSZ, GAGESFDZ, GABEDFDZ, GAZLLG, GAABF2, GAZBEDKG, GAFILLER)"
                + " VALUES (:GAMANDANT, :GAAUFKRS, :GAAUFLFD, :GAAUFPOS, :GASA, :GAPOS, 10, 'INTEXE  ', '20080912', '92      ', '20080606', 0, 0, '        ', '        ', 'CO.NE.14.2          ', '1  ', '500014    ', '   ', '1', 10039, 0, 0, 10016, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', ' ', '  ', '  ', '        ', ' ', '                                        ', '    ', '      ', '00', 0, 0, 0, '  ', '  ', '  ', ' ', ' ', ' ', '        ', '  ', '  ', '        ', ' ', '        ', 0, '        ', '        ', ' ', '   ', '000', ' ', ' ', 0, ' ', ' ', '   ', '00', '   ', '00', ' ', ' ', '        ', ' ', ' ', 0, 0, 0, 0, 0, 0, 0, '                                         ')";
            or1.Parameters.Add("GAMANDANT", OracleType.NVarChar).Value = dwData["GAMANDANT"].ToString();
            or1.Parameters.Add("GAAUFKRS", OracleType.NVarChar).Value = dwData["GAAUFKRS"].ToString();
            or1.Parameters.Add("GAAUFLFD", OracleType.NVarChar).Value = dwData["GAAUFLFD"].ToString();
            or1.Parameters.Add("GAAUFPOS", OracleType.NVarChar).Value = dwData["GAAUFPOS"].ToString();
            or1.Parameters.Add("GASA", OracleType.NVarChar).Value = dwData["GASA"].ToString();
            or1.Parameters.Add("GAPOS", OracleType.NVarChar).Value = dwData["GAPOS"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertGSCOLOR(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            //GSCMANDANT  GSCART GSCVAR GSCFARBE
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO GSCOLOR "
                + "              (GSCMANDANT, GSCART, GSCVAR, GSCFARBE, GSCAENDZL, GSCAENDBEN, GSCAENDDAT, GSCNEUBEN, GSCNEUDAT, GSCSTATUS, GSCSFKZ, GSCBEZ, GSCFKARTNR, GSCKTFARBE, GSCBOM, GSCBOMCGRP, GSCFDVF, GSCVORB, GSCNACHB, GSCFA, GSCRUESTGRP, GSCPRUEFGRP, GSCSTATVF, GSCKZDUMCOL, GSCPSEUDOCOL, GSCTEXTSCHL, GSCMUFRB, GSCSCHLIAUF, GSCFIXTEMP, GSCFIXTIME, GSCABRASION, GSCABRAMTR, GSCPROGRP, GSCARTGRP, GSCRECHNUM, GSCRECHNR, GSCPRGRP, GSCPREIS, GSCZUAK, GSCZUPROZ, GSCANFART, GSCWERT, GSCWERTPROZ, GSCZUAB, GSCZUABPROZ, GSCZTWAHL, GSCVERLUST, GSCKALKMG, GSCLOAN, GSCLBAN, GSCLPAN, GSCPKL, GSCMU, GSCMURLOD, GSCMUPROD, GSCMUCTOD, GSCMUBIRL, GSCMUDTRL, GSCCOLPT1, GSCCOLPT2, GSCCOLPT3, GSCCOLPT4, GSCFILLER)"
                + "VALUES (:GSCMANDANT, :GSCART, :GSCVAR,:GSCFARBE, 0,                   '        ',                 0,                      'INTEXE  ', 0                  ,   'A',                'N', :GSCBEZ, '          ', '          ', ' ', ' ', '   ', '   ', '   ', 0, '   ', ' ', '   ', ' ', '          ', '          ', '          ', 0, 0, 0, 0, 0, '   ', '   ', '    ', 0, ' ', 0, 0, ' ', '    ', 0, ' ', 0, ' ', 0, 0, 0, '  ', '  ', '        ', '  ', ' ', '00', '00', ' ', '        ', 0, ' ', ' ', ' ', ' ', '                                                    ')";
            or1.Parameters.Add("GSCMANDANT", OracleType.NVarChar).Value = dwData["GSCMANDANT"].ToString();
            or1.Parameters.Add("GSCART", OracleType.NVarChar).Value = dwData["GSCART"].ToString();
            or1.Parameters.Add("GSCVAR", OracleType.NVarChar).Value = dwData["GSCVAR"].ToString();
            or1.Parameters.Add("GSCFARBE", OracleType.NVarChar).Value = dwData["GSCFARBE"].ToString();
            or1.Parameters.Add("GSCBEZ", OracleType.NVarChar).Value = dwData["GSCBEZ"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertGASTGA(DataRow dwData, string ITXDBVERSION = "50.24")
        {

            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO GASTGA(GAGMANDANT, GAGART, GAGVAR, GAGFARBE, GAGPOS, GAGGART, GAGGVAR, GAGGFARBE, GAGABF, GAGKGNET, GAGKGBRUT, GAGDISPOKZ, GAGBEM, GAGFDZANZ, GAGANTEIL, GAGBASIS, GAGFILLER)"
            + " VALUES (:GAGMANDANT,:GAGART, :GAGVAR, :GAGFARBE, :GAGPOS,:GAGART, :GAGVAR, '000000    ', 200, '0001000000', '0001000000', 'B', '                    ', 1, 100000, 10000, '                                   ')";
            or1.Parameters.Add("GAGMANDANT", OracleType.NVarChar).Value = dwData["GAGMANDANT"].ToString();
            or1.Parameters.Add("GAGART", OracleType.NVarChar).Value = dwData["GAGART"].ToString();
            or1.Parameters.Add("GAGVAR", OracleType.NVarChar).Value = dwData["GAGVAR"].ToString();
            or1.Parameters.Add("GAGFARBE", OracleType.NVarChar).Value = dwData["GAGFARBE"].ToString();
            or1.Parameters.Add("GAGPOS", OracleType.NVarChar).Value = dwData["GAGPOS"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertGZKON(DataRow dwData, string ITXDBVERSION = "50.24")
        {

            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO GZKON(GZKMANDANT, GZKART, GZKVAR, GZKFARBE, GZKPOS, GZKGART, GZKGVAR, GZKGFARBE, GZKZUAB, GZKANTEIL, GZKABF, GZKDISPOKZ, GZKFDZANZ, GZKEINZW1, GZKEINZW2, GZKEINZW3, GZKEINZW4, GZKTOUREN1, GZKDREHUNG1, GZKTOUREN2, GZKDREHUNG2, GZKTOUREN3, GZKDREHUNG3, GZKTOUREN4, GZKDREHUNG4, GZKFILLER)"
                + " VALUES (:GZKMANDANT, :GZKART,:GZKVAR,:GZKFARBE, :GZKPOS, :GZKART, :GZKVAR, :GZKFARBE, 0, 0, 0, 'B', 1, 0, 0, 0, 0, 0, ' ', 0, ' ', 0, ' ', 0, ' ', '                                                                   ')";
            or1.Parameters.Add("GZKMANDANT", OracleType.NVarChar).Value = dwData["GZKMANDANT"].ToString();
            or1.Parameters.Add("GZKART", OracleType.NVarChar).Value = dwData["GZKART"].ToString();
            or1.Parameters.Add("GZKVAR", OracleType.NVarChar).Value = dwData["GZKVAR"].ToString();
            or1.Parameters.Add("GZKFARBE", OracleType.NVarChar).Value = dwData["GZKFARBE"].ToString();
            or1.Parameters.Add("GZKPOS", OracleType.NVarChar).Value = dwData["GZKPOS"].ToString();
            setResult = Connect2Proxy(or1);
        }

        #endregion

        #region======H==============
        #endregion

        #region======K==============
        //KDSTAMM KUNDVER
        public void InsertKDSTAMM(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            or1 = OracleDB.CreateCommand();
            DataSet result = new DataSet();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = " INSERT INTO KDSTAMM(KDMANDANT, KDKUNDNR, KDKUNDNA, KDLAND, KDPLZ, KDORT, KDBZ, KDBZBEZ, KDSTAKZ, KDSTADAT, KDABCKL, KDANREDE, KDNAME1, KDKNAME, KDNAME2, KDSTRASSE1, KDSTRASSE2, KDPLZPOSTF, KDPOSTFACH, KDTEL, KDTELEX, KDFAX, KDBTX, KDDATEX, KDMBOX, KDMAILADR, KDTTEX, KDCOUNTY, KDCITY, KDZENTR, KDZENTRR, KDSPRKZ, KDBBN, KDSONDSTA, KDKDNRALT, KDLO, KDLB, KDLP, KDLIEFNR, KDINVDAT, KDDEBNR, KDKREDNR, KDUEBKZ, KDAUSK, KDAUSKKZ, KDMAHNST, KDMAHNH, KDGRPCUNO, KDCLEARCUNO, KDBIC1, KDIBAN1, KDBIC2, KDIBAN2, KDKREDLIM1, KDKREDVON1, KDKREDBIS1, KDKREDNLDAT1, KDVERS1, KDVERS21, KDKREDSB1, KDVERSTAGE1, KDVERSNR1, KDKREDLIM2, KDKREDVON2, KDKREDBIS2, KDKREDNLDAT2, KDVERS2, KDVERS22, KDKREDSB2, KDVERSTAGE2, KDVERSNR2, KDKREDLIM3, KDKREDVON3, KDKREDBIS3, KDKREDNLDAT3, KDVERS3, KDVERS23, KDKREDSB3, KDVERSTAGE3, KDVERSNR3, KDKREDLIM4, KDKREDVON4, KDKREDBIS4, KDKREDNLDAT4, KDVERS4, KDVERS24, KDKREDSB4, KDVERSTAGE4, KDVERSNR4, KDKREDLIM5, KDKREDVON5, KDKREDBIS5, KDKREDNLDAT5, KDVERS5, KDVERS25, KDKREDSB5, KDVERSTAGE5, KDVERSNR5, KDKREDEHA, KDKREDEHAR, KDKREDNOLI, KDKREDNOLIV, KDKREDNOLIB, KDAUFBESTTO, KDVERSUMLTO, KDOPSALDOTO, KDZUSKRED, KDZKREVON, KDZKREBIS, KDZKREDSB, KDOPSALDO, KDWEOBLIGO, KDVERSUML, KDSPERRKZ, KDSPERRGRD, KDLAUFDAT, KDBUCHHDAT, KDBRANCHE, KDFAKTART, KDKORT, KDLIMITKZ, KDSPLIEFKZ, KDAUFBEST, KDAUFBESTU, KDPREISPRF, KDMATPRF, KDBRTPRF, KDGQMPRF, KDSTKGPRF, KDSCHLIPRF, KDSCHLIABW, KDDRPAR, KDMWSTID, KDMWSTID2, KDLBMUSTR, KDFBMUSTR, KDSTLAND, KDSTREGBZ, KDSTKREIS, KDSTORT, KDLSART, KDREGMWST, KDMUSTERKZ, KDUMSVVJH, KDUMSVJH, KDUMSLJH, KDPRFZEUG, KDKONZMIT, KDRAITING, KDRECHWERT1, KDRECHWERT2, KDRECHWERT3, KDRECHWERT4, KDRECHWERT5, KDKREDKDNR, KDKOND, KDKDARTBEZ, KDKFIBUDAT, KDKFIBUZEIT, KDILN, KDDEBNRLAE, KDFACLIMIT, KDSHIPINVD, KDAUFBUTO, KDMAXBST, KDGRUPPE, KDEORI, KDEORINL, KDNTSCV, KDNTSCE, KDFILLER, KDAENZL, KDAENB, KDAEND, KDNEUB, KDNEUD)"
                                + " VALUES ((:KDMANDANT, :KDKUNDNR, :KDKUNDNA,  'CN ', '42116       ', 'ZHANGJIAGANG                            ', '1 ', 'JIANGSU      ', 'A', 20100603, 'C', '1', 'ó￠ì??1￡¨?D1ú￡?1??ê1???                  ', 'intex-j        ', 'intex (china) consulting Ltd.           ', '???ò??1úì?±±?·1o?                       ', '                                        ', '            ', '               ', '0512-58187818       ', '                    ', '                    ', '                    ', '                    ', '                                        ', '                                                                                                    ', '                    ', '    ', '    ', '        ', ' ', 'V', 'A                   ', ' ', '          ', '  ', '  ', '        ', '                ', 0, '00270070', '00000000', 'N', 0, '  ', ' ', '00000', '270070  ', '        ', '           ', '                                  ', '           ', '                                  ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, '  ', '  ', 0, 0, 50000, 0, 0, 0, 0, 0, '        ', 0, 0, 0, 'N', '   ', 20100603, 0, '   ', '   ', 'ZHANGJIAGA', 'N', ' ', 50000, 0, 'J', 'J', 'J', 'J', 'J', 'J', 'J', '     ', '                    ', '                    ', '   ', '   ', '  ', '  ', '  ', '   ', '   ', '   ', ' ', '00000000000', '00001500000', '00000000000', ' ', 'N', '   ', '0000000000', '0000000000', '0000000000', '0000000000', '0000000000', '00270070', 'K', 'K', 0, 0, '             ', '0', 0, '000', 0, '00000', ' ', '                 ', '0000', ' ', ' ', '                                                                       ', 6, 'JAKV    ', 20111102, 'JAKV    ', 20100603)";
                    break;
                case "50.25":
                default:
                    or1.CommandText = "INSERT INTO KDSTAMM(KDMANDANT, KDKUNDNR, KDKUNDNA, KDLAND, KDPLZ, KDORT, KDBZ, KDBZBEZ, KDSTAKZ, KDSTADAT, KDABCKL, KDANREDE, KDNAME1, KDKNAME, KDNAME2, KDSTRASSE1, KDSTRASSE2, KDPLZPOSTF, KDPOSTFACH, KDTEL, KDTELEX, KDFAX, KDBTX, KDDATEX, KDMBOX, KDMAILADR, KDTTEX, KDCOUNTY, KDCITY, KDZENTR, KDZENTRR, KDSPRKZ, KDBBN, KDSONDSTA, KDKDNRALT, KDLO, KDLB, KDLP, KDLIEFNR, KDINVDAT, KDDEBNR, KDKREDNR, KDUEBKZ, KDAUSK, KDAUSKKZ, KDMAHNST, KDMAHNH, KDGRPCUNO, KDCLEARCUNO, KDBIC1, KDIBAN1, KDBIC2, KDIBAN2, KDKREDLIM1, KDKREDVON1, KDKREDBIS1, KDKREDNLDAT1, KDVERS1, KDVERS21, KDKREDSB1, KDVERSTAGE1, KDVERSNR1, KDKREDLIM2, KDKREDVON2, KDKREDBIS2, KDKREDNLDAT2, KDVERS2, KDVERS22, KDKREDSB2, KDVERSTAGE2, KDVERSNR2, KDKREDLIM3, KDKREDVON3, KDKREDBIS3, KDKREDNLDAT3, KDVERS3, KDVERS23, KDKREDSB3, KDVERSTAGE3, KDVERSNR3, KDKREDLIM4, KDKREDVON4, KDKREDBIS4, KDKREDNLDAT4, KDVERS4, KDVERS24, KDKREDSB4, KDVERSTAGE4, KDVERSNR4, KDKREDLIM5, KDKREDVON5, KDKREDBIS5, KDKREDNLDAT5, KDVERS5, KDVERS25, KDKREDSB5, KDVERSTAGE5, KDVERSNR5, KDKREDEHA, KDKREDEHAR, KDKREDNOLI, KDKREDNOLIV, KDKREDNOLIB, KDAUFBESTTO, KDVERSUMLTO, KDOPSALDOTO, KDZUSKRED, KDZKREVON, KDZKREBIS, KDZKREDSB, KDOPSALDO, KDWEOBLIGO, KDVERSUML, KDSPERRKZ, KDSPERRGRD, KDLAUFDAT, KDBUCHHDAT, KDBRANCHE, KDFAKTART, KDKORT, KDLIMITKZ, KDSPLIEFKZ, KDAUFBEST, KDAUFBESTU, KDPREISPRF, KDMATPRF, KDBRTPRF, KDGQMPRF, KDSTKGPRF, KDSCHLIPRF, KDSCHLIABW, KDDRPAR, KDMWSTID, KDMWSTID2, KDLBMUSTR, KDFBMUSTR, KDSTLAND, KDSTREGBZ, KDSTKREIS, KDSTORT, KDLSART, KDREGMWST, KDMUSTERKZ, KDUMSVVJH, KDUMSVJH, KDUMSLJH, KDPRFZEUG, KDKONZMIT, KDRAITING, KDRECHWERT1, KDRECHWERT2, KDRECHWERT3, KDRECHWERT4, KDRECHWERT5, KDKREDKDNR, KDKOND, KDKDARTBEZ, KDKFIBUDAT, KDKFIBUZEIT, KDILN, KDDEBNRLAE, KDFACLIMIT, KDSHIPINVD, KDAUFBUTO, KDMAXBST, KDGRUPPE, KDEORI, KDEORINL, KDNTSCV, KDNTSCE, KDKEYAC, KDKTOGRP, KDFILLER, KDAENZL, KDAENB, KDAEND, KDNEUB, KDNEUD)"
                                                    + " VALUES (:KDMANDANT, :KDKUNDNR, :KDKUNDNA, 'CN ', '            ', 'FOSHAN                                  ', '  ', '             ', 'A', 20130219, 'A', '1', 'NAME1                                   ', 'HLT            ', 'NAME2                                   ', 'STREET                                  ', 'ADDRESS                                 ', '            ', '               ', '0757-86880599       ', '                    ', '0757-86845974       ', '                    ', '                    ', '                                        ', 'kent@carpediem.hk                                                                                   ', '                    ', '    ', '    ', '00000000', 'J', 'E', 'A                   ', ' ', '          ', '  ', '  ', '        ', '                ', 0, '00000200', '00000200', 'N', 0, '  ', ' ', '00000', '200     ', '        ', '           ', '                                  ', '           ', '                                  ', 90000000, 0, 20231212, 0, '01', '  ', 'SUNLV   ', 0, '          ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, 0, 0, 0, '  ', '  ', '        ', 0, '          ', 0, '  ', '  ', 0, 0, 4792400, 471548, 0, 200000, 20120312, 20220512, 'SUNLV   ', 0, 0, 471412, 'N', '   ', 20130105, 0, 'MIL', '   ', 'FOSHAN    ', 'F', 'N', 4567550, 0, 'J', 'J', 'J', 'J', 'J', 'J', 'J', '     ', '                    ', '                    ', '   ', '   ', '  ', '  ', '  ', '   ', '   ', '17%', ' ', '00000000000', '00009037120', '00002699800', ' ', 'N', '003', '0000000000', '0000000000', '0000000000', '0000000000', '0000000000', '00000200', 'K', 'K', 0, 0, '             ', '0', 0, '000', 0, '00000', ' ', '                 ', '0000', ' ', ' ', '        ', '  ', '                                                             ', 421, 'SUNLV   ', 20130219, 'WI      ', 19980128)";
                    break;
            }
            or1.Parameters.Add("KDMANDANT", OracleType.NVarChar).Value = dwData["KDMANDANT"].ToString();
            or1.Parameters.Add("KDKUNDNR", OracleType.NVarChar).Value = dwData["KDKUNDNR"].ToString();
            or1.Parameters.Add("KDKUNDNA", OracleType.NVarChar).Value = dwData["KDKUNDNA"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertKUNDVER(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            or1 = OracleDB.CreateCommand();
            DataSet result = new DataSet();
            or1.CommandText = "INSERT INTO KUNDVER(KDVMANDANT, KDVKUNDNR, KDVVB, KDVVG, KDVSTAKZ, KDVSTADAT, KDVWAEHRSL, KDVZAHLBED, KDVEKON, KDVKDVKL, KDVVALUTA, KDVSTEUER, KDVLIEFBED, KDVLANDU, KDVPLZU, KDVORTU, KDVBZU, KDVBZBEZU, KDVCOUNTRY, KDVCITY, KDVPREISGRP, KDVMINDST, KDVSTDBON, KDVLIEFKOMP, KDVLIEFAUTO, KDVABNGRP, KDVABSSCHL, KDVMUSTER, KDVKOLLZYKL, KDVBONVON, KDVBONIN, KDVBONBIS, KDVABRVB, KDVABRVG, KDVRABABRKZ, KDVBONABRKZ, KDVGBABRKZ, KDVFBABRKZ, KDVVBABRKZ, KDVGABONA, KDVGABONP, KDVFIXBONP, KDVVORBONP, KDVRABART1, KDVRABPROZ1, KDVRABART2, KDVRABPROZ2, KDVRABART3, KDVRABPROZ3, KDVRABART4, KDVRABPROZ4, KDVRABART5, KDVRABPROZ5, KDVBONWE1, KDVBONP1, KDVBONWE2, KDVBONP2, KDVBONWE3, KDVBONP3, KDVBONWE4, KDVBONP4, KDVBONWE5, KDVBONP5, KDVBONWE6, KDVBONP6, KDVBONWE7, KDVBONP7, KDVBONWE8, KDVBONP8, KDVBONWE9, KDVBONP9, KDVBONWE10, KDVBONP10, KDVUMSGR, KDVDISTRWEG, KDVSTATGEB, KDVSACHB, KDVVORBONV1, KDVVORBONV2, KDVVORBONV3, KDVBONLDAT, KDVVBONLDAT, KDVZUREGEL, KDVZEITRAUM, KDVWOCHTAG, KDVKZVORW, KDVMONTAG1, KDVMONTAG2, KDVDATLSR, KDVVTRNR1, KDVVTRNR2, KDVVTRNR3, KDVVTRNR4, KDVAZVERB, KDVBASIS, KDVSPLITT, KDVMEEH, KDVAUFMEEH, KDVABRUF, KDVZESSIO, KDVMAXWERT, KDVPREH, KDVFBPROV, KDVSPLKEY, KDVFILLER, KDVAENDZL, KDVAENDBEN, KDVAENDDAT, KDVNEUBEN, KDVNEUDAT)"
                + " VALUES (:KDVMANDANT, :KDVKUNDNR, :KDVVB, :KDVVG, 'A', 20100121, 'RMB', 'STD', '        ', '   ', 0, '17%', 'EXW', '   ', '            ', '                                        ', '  ', '             ', '    ', '    ', 'SA      ', '1', '        ', 'N', 'N', '   ', '   ', 0, '                         ', 0, 0, 0, '   ', '   ', ' ', ' ', ' ', ' ', ' ', 0, 0, 0, 0, '   ', 0, '   ', 0, '   ', 0, '   ', 0, '   ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '   ', '   ', 'INTEXV  ', 0, 0, 0, 0, 0, 'J', ' ', '0', 'N', '00', '00', 20130105, '        ', '        ', '        ', '        ', '0', ' ', ' ', '   ', '   ', 'N', ' ', 0, '   ', ' ', ' ', '                                                                                                                          ', 16, 'SUNLV   ', 20130105, 'INTEXE  ', 20100121)";
            or1.Parameters.Add("KDVMANDANT", OracleType.NVarChar).Value = dwData["KDVMANDANT"].ToString();
            or1.Parameters.Add("KDVKUNDNR", OracleType.NVarChar).Value = dwData["KDVKUNDNR"].ToString();
            or1.Parameters.Add("KDVVB", OracleType.NVarChar).Value = dwData["KDVVB"].ToString();
            or1.Parameters.Add("KDVVG", OracleType.NVarChar).Value = dwData["KDVVG"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertKSLEIST(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            or1 = OracleDB.CreateCommand();
            DataSet result = new DataSet();
            or1.CommandText = "INSERT INTO KSLEIST(KSLMANDANT, KSLAUFKRS, KSLAUFLFD, KSLAUFPOS, KSLAFOLGE, KSLAENDZL, KSLMDAT, KSLSCHICHT, KSLMZTV, KSLMZTB, KSLPERSNR, KSLMBENID, KSLMPROG, KSLMAFOLGE, KSLMCODE, KSLSA, KSLHERK, KSLVST, KSLIKOSTBW, KSLKAP, KSLDIV, KSLVERT, KSLMELDKZ, KSLERST, KSLAUFTYP, KSLAUFART, KSLTP, KSLFOLGEV, KSLFOLGEB, KSLSTKNR, KSLAGANG, KSLPLANKZ, KSLFIX, KSLMANUELKZ, KSLANTERLS, KSLERSTKZ, KSLZTAMMELD, KSLKUNDNR, KSLWERK, KSLABT, KSLWAKZ, KSLART, KSLVAR, KSLDESS, KSLCOLORIT, KSLBESCHICH, KSLFARBE, KSLZUSTAND, KSLPROGRP, KSLARTGRP, KSLKAAGRA, KSLKAAGRP, KSLKZINLEXP, KSLKPFL, KSLME, KSLMGANZ, KSLMGMTR, KSLMGQM, KSLMGKG, KSLSAKSTKRS, KSLSAKST, KSLSMNRKRS, KSLSMLFDNR, KSLSMPOS, KSLSEVARHNR, KSLSEVARUNR, KSLSMZT, KSLSPZT, KSLSRML, KSLSRMS, KSLSRPZ, KSLGKSTKRS, KSLGKST, KSLIAKSTKRS, KSLIAKST, KSLIMNRKRS, KSLIMLFDNR, KSLIMPOS, KSLIEVARHNR, KSLIEVARUNR, KSLIMZT, KSLIPZT, KSLIRML, KSLIRMS, KSLIRPZ, KSLLIEFNR, KSLRENR, KSLREPOS, KSLLSKOST, KSLLIKOST, KSLLIKOSTI, KSLRSKOST, KSLRIKOST, KSLRIKOSTI, KSLRSKOSTF, KSLRIKOSTF, KSLRIKOSTIF, KSLSQKOSTM1, KSLSQKOSTM2, KSLSQKOSTM3, KSLSQKOSTM4, KSLSQKOSTM5, KSLIQKOSTM1, KSLIQKOSTM2, KSLIQKOSTM3, KSLIQKOSTM4, KSLIQKOSTM5, KSLIQKOSTIM1, KSLIQKOSTIM2, KSLIQKOSTIM3, KSLIQKOSTIM4, KSLIQKOSTIM5, KSLSQKOSTP1, KSLSQKOSTP2, KSLSQKOSTP3, KSLSQKOSTP4, KSLSQKOSTP5, KSLIQKOSTP1, KSLIQKOSTP2, KSLIQKOSTP3, KSLIQKOSTP4, KSLIQKOSTP5, KSLIQKOSTIP1, KSLIQKOSTIP2, KSLIQKOSTIP3, KSLIQKOSTIP4, KSLIQKOSTIP5, KSLGSKOST1, KSLGSKOST2, KSLGSKOST3, KSLGSKOST4, KSLGSKOST5, KSLGIKOST1, KSLGIKOST2, KSLGIKOST3, KSLGIKOST4, KSLGIKOST5, KSLGIKOSTI1, KSLGIKOSTI2, KSLGIKOSTI3, KSLGIKOSTI4, KSLGIKOSTI5, KSLAENDZLST, KSLAENDZLSV, KSLENDKZ, KSLABG, KSLARBPL, KSLLSTAR, KSLLO, KSLPAUFKRS, KSLPAUFLFD, KSLPAFOLGE, KSLFILLER)"
+ " VALUES (:KSLMANDANT, :KSLAUFKRS, :KSLAUFLFD, :KSLAUFPOS, :KSLAFOLGE, :KSLAENDZL, :KSLMDAT, :KSLSCHICHT, :KSLMZTV, :KSLMZTB, :KSLPERSNR, :KSLMBENID, :KSLMPROG, :KSLMAFOLGE, :KSLMCODE, :KSLSA, :KSLHERK, :KSLVST, :KSLIKOSTBW, :KSLKAP, :KSLDIV, :KSLVERT, :KSLMELDKZ, :KSLERST, :KSLAUFTYP, :KSLAUFART, :KSLTP, :KSLFOLGEV, :KSLFOLGEB, :KSLSTKNR, :KSLAGANG, :KSLPLANKZ, :KSLFIX, :KSLMANUELKZ, :KSLANTERLS, :KSLERSTKZ, :KSLZTAMMELD, :KSLKUNDNR, :KSLWERK, :KSLABT, :KSLWAKZ, :KSLART, :KSLVAR, :KSLDESS, :KSLCOLORIT, :KSLBESCHICH, :KSLFARBE, :KSLZUSTAND, :KSLPROGRP, :KSLARTGRP, :KSLKAAGRA, :KSLKAAGRP, :KSLKZINLEXP, :KSLKPFL, :KSLME, :KSLMGANZ, :KSLMGMTR, :KSLMGQM, :KSLMGKG, :KSLSAKSTKRS, :KSLSAKST, :KSLSMNRKRS, :KSLSMLFDNR, :KSLSMPOS, :KSLSEVARHNR, :KSLSEVARUNR, :KSLSMZT, :KSLSPZT, :KSLSRML, :KSLSRMS, :KSLSRPZ, :KSLGKSTKRS, :KSLGKST, :KSLIAKSTKRS, :KSLIAKST, :KSLIMNRKRS, :KSLIMLFDNR, :KSLIMPOS, :KSLIEVARHNR, :KSLIEVARUNR, :KSLIMZT, :KSLIPZT, :KSLIRML, :KSLIRMS, :KSLIRPZ, :KSLLIEFNR, :KSLRENR, :KSLREPOS, :KSLLSKOST, :KSLLIKOST, :KSLLIKOSTI, :KSLRSKOST, :KSLRIKOST, :KSLRIKOSTI, :KSLRSKOSTF, :KSLRIKOSTF, :KSLRIKOSTIF, :KSLSQKOSTM1, :KSLSQKOSTM2, :KSLSQKOSTM3, :KSLSQKOSTM4, :KSLSQKOSTM5, :KSLIQKOSTM1, :KSLIQKOSTM2, :KSLIQKOSTM3, :KSLIQKOSTM4, :KSLIQKOSTM5, :KSLIQKOSTIM1, :KSLIQKOSTIM2, :KSLIQKOSTIM3, :KSLIQKOSTIM4, :KSLIQKOSTIM5, :KSLSQKOSTP1, :KSLSQKOSTP2, :KSLSQKOSTP3, :KSLSQKOSTP4, :KSLSQKOSTP5, :KSLIQKOSTP1, :KSLIQKOSTP2, :KSLIQKOSTP3, :KSLIQKOSTP4, :KSLIQKOSTP5, :KSLIQKOSTIP1, :KSLIQKOSTIP2, :KSLIQKOSTIP3, :KSLIQKOSTIP4, :KSLIQKOSTIP5, :KSLGSKOST1, :KSLGSKOST2, :KSLGSKOST3, :KSLGSKOST4, :KSLGSKOST5, :KSLGIKOST1, :KSLGIKOST2, :KSLGIKOST3, :KSLGIKOST4, :KSLGIKOST5, :KSLGIKOSTI1, :KSLGIKOSTI2, :KSLGIKOSTI3, :KSLGIKOSTI4, :KSLGIKOSTI5, :KSLAENDZLST, :KSLAENDZLSV, :KSLENDKZ, :KSLABG, :KSLARBPL, :KSLLSTAR, :KSLLO, :KSLPAUFKRS, :KSLPAUFLFD, :KSLPAFOLGE, :KSLFILLER)";
            or1.Parameters.Add("KSLMANDANT", OracleType.NVarChar).Value = dwData["KSLMANDANT"].ToString();
            or1.Parameters.Add("KSLAUFKRS", OracleType.NVarChar).Value = dwData["KSLAUFKRS"].ToString();
            or1.Parameters.Add("KSLAUFLFD", OracleType.NVarChar).Value = dwData["KSLAUFLFD"].ToString();
            or1.Parameters.Add("KSLAUFPOS", OracleType.NVarChar).Value = dwData["KSLAUFPOS"].ToString();
            or1.Parameters.Add("KSLAFOLGE", OracleType.NVarChar).Value = dwData["KSLAFOLGE"].ToString();
            or1.Parameters.Add("KSLAENDZL", OracleType.NVarChar).Value = dwData["KSLAENDZL"].ToString();
            or1.Parameters.Add("KSLMDAT", OracleType.NVarChar).Value = dwData["KSLMDAT"].ToString();
            or1.Parameters.Add("KSLSCHICHT", OracleType.NVarChar).Value = dwData["KSLSCHICHT"].ToString();
            or1.Parameters.Add("KSLMZTV", OracleType.NVarChar).Value = dwData["KSLMZTV"].ToString();
            or1.Parameters.Add("KSLMZTB", OracleType.NVarChar).Value = dwData["KSLMZTB"].ToString();
            or1.Parameters.Add("KSLPERSNR", OracleType.NVarChar).Value = dwData["KSLPERSNR"].ToString();
            or1.Parameters.Add("KSLMBENID", OracleType.NVarChar).Value = dwData["KSLMBENID"].ToString();
            or1.Parameters.Add("KSLMPROG", OracleType.NVarChar).Value = dwData["KSLMPROG"].ToString();
            or1.Parameters.Add("KSLMAFOLGE", OracleType.NVarChar).Value = dwData["KSLMAFOLGE"].ToString();
            or1.Parameters.Add("KSLMCODE", OracleType.NVarChar).Value = dwData["KSLMCODE"].ToString();
            or1.Parameters.Add("KSLSA", OracleType.NVarChar).Value = dwData["KSLSA"].ToString();
            or1.Parameters.Add("KSLHERK", OracleType.NVarChar).Value = dwData["KSLHERK"].ToString();
            or1.Parameters.Add("KSLVST", OracleType.NVarChar).Value = dwData["KSLVST"].ToString();
            or1.Parameters.Add("KSLIKOSTBW", OracleType.NVarChar).Value = dwData["KSLIKOSTBW"].ToString();
            or1.Parameters.Add("KSLKAP", OracleType.NVarChar).Value = dwData["KSLKAP"].ToString();
            or1.Parameters.Add("KSLDIV", OracleType.NVarChar).Value = dwData["KSLDIV"].ToString();
            or1.Parameters.Add("KSLVERT", OracleType.NVarChar).Value = dwData["KSLVERT"].ToString();
            or1.Parameters.Add("KSLMELDKZ", OracleType.NVarChar).Value = dwData["KSLMELDKZ"].ToString();
            or1.Parameters.Add("KSLERST", OracleType.NVarChar).Value = dwData["KSLERST"].ToString();
            or1.Parameters.Add("KSLAUFTYP", OracleType.NVarChar).Value = dwData["KSLAUFTYP"].ToString();
            or1.Parameters.Add("KSLAUFART", OracleType.NVarChar).Value = dwData["KSLAUFART"].ToString();
            or1.Parameters.Add("KSLTP", OracleType.NVarChar).Value = dwData["KSLTP"].ToString();
            or1.Parameters.Add("KSLFOLGEV", OracleType.NVarChar).Value = dwData["KSLFOLGEV"].ToString();
            or1.Parameters.Add("KSLFOLGEB", OracleType.NVarChar).Value = dwData["KSLFOLGEB"].ToString();
            or1.Parameters.Add("KSLSTKNR", OracleType.NVarChar).Value = dwData["KSLSTKNR"].ToString();
            or1.Parameters.Add("KSLAGANG", OracleType.NVarChar).Value = dwData["KSLAGANG"].ToString();
            or1.Parameters.Add("KSLPLANKZ", OracleType.NVarChar).Value = dwData["KSLPLANKZ"].ToString();
            or1.Parameters.Add("KSLFIX", OracleType.NVarChar).Value = dwData["KSLFIX"].ToString();
            or1.Parameters.Add("KSLMANUELKZ", OracleType.NVarChar).Value = dwData["KSLMANUELKZ"].ToString();
            or1.Parameters.Add("KSLANTERLS", OracleType.NVarChar).Value = dwData["KSLANTERLS"].ToString();
            or1.Parameters.Add("KSLERSTKZ", OracleType.NVarChar).Value = dwData["KSLERSTKZ"].ToString();
            or1.Parameters.Add("KSLZTAMMELD", OracleType.NVarChar).Value = dwData["KSLZTAMMELD"].ToString();
            or1.Parameters.Add("KSLKUNDNR", OracleType.NVarChar).Value = dwData["KSLKUNDNR"].ToString();
            or1.Parameters.Add("KSLWERK", OracleType.NVarChar).Value = dwData["KSLWERK"].ToString();
            or1.Parameters.Add("KSLABT", OracleType.NVarChar).Value = dwData["KSLABT"].ToString();
            or1.Parameters.Add("KSLWAKZ", OracleType.NVarChar).Value = dwData["KSLWAKZ"].ToString();
            or1.Parameters.Add("KSLART", OracleType.NVarChar).Value = dwData["KSLART"].ToString();
            or1.Parameters.Add("KSLVAR", OracleType.NVarChar).Value = dwData["KSLVAR"].ToString();
            or1.Parameters.Add("KSLDESS", OracleType.NVarChar).Value = dwData["KSLDESS"].ToString();
            or1.Parameters.Add("KSLCOLORIT", OracleType.NVarChar).Value = dwData["KSLCOLORIT"].ToString();
            or1.Parameters.Add("KSLBESCHICH", OracleType.NVarChar).Value = dwData["KSLBESCHICH"].ToString();
            or1.Parameters.Add("KSLFARBE", OracleType.NVarChar).Value = dwData["KSLFARBE"].ToString();
            or1.Parameters.Add("KSLZUSTAND", OracleType.NVarChar).Value = dwData["KSLZUSTAND"].ToString();
            or1.Parameters.Add("KSLPROGRP", OracleType.NVarChar).Value = dwData["KSLPROGRP"].ToString();
            or1.Parameters.Add("KSLARTGRP", OracleType.NVarChar).Value = dwData["KSLARTGRP"].ToString();
            or1.Parameters.Add("KSLKAAGRA", OracleType.NVarChar).Value = dwData["KSLKAAGRA"].ToString();
            or1.Parameters.Add("KSLKAAGRP", OracleType.NVarChar).Value = dwData["KSLKAAGRP"].ToString();
            or1.Parameters.Add("KSLKZINLEXP", OracleType.NVarChar).Value = dwData["KSLKZINLEXP"].ToString();
            or1.Parameters.Add("KSLKPFL", OracleType.NVarChar).Value = dwData["KSLKPFL"].ToString();
            or1.Parameters.Add("KSLME", OracleType.NVarChar).Value = dwData["KSLME"].ToString();
            or1.Parameters.Add("KSLMGANZ", OracleType.NVarChar).Value = dwData["KSLMGANZ"].ToString();
            or1.Parameters.Add("KSLMGMTR", OracleType.NVarChar).Value = dwData["KSLMGMTR"].ToString();
            or1.Parameters.Add("KSLMGQM", OracleType.NVarChar).Value = dwData["KSLMGQM"].ToString();
            or1.Parameters.Add("KSLMGKG", OracleType.NVarChar).Value = dwData["KSLMGKG"].ToString();
            or1.Parameters.Add("KSLSAKSTKRS", OracleType.NVarChar).Value = dwData["KSLSAKSTKRS"].ToString();
            or1.Parameters.Add("KSLSAKST", OracleType.NVarChar).Value = dwData["KSLSAKST"].ToString();
            or1.Parameters.Add("KSLSMNRKRS", OracleType.NVarChar).Value = dwData["KSLSMNRKRS"].ToString();
            or1.Parameters.Add("KSLSMLFDNR", OracleType.NVarChar).Value = dwData["KSLSMLFDNR"].ToString();
            or1.Parameters.Add("KSLSMPOS", OracleType.NVarChar).Value = dwData["KSLSMPOS"].ToString();
            or1.Parameters.Add("KSLSEVARHNR", OracleType.NVarChar).Value = dwData["KSLSEVARHNR"].ToString();
            or1.Parameters.Add("KSLSEVARUNR", OracleType.NVarChar).Value = dwData["KSLSEVARUNR"].ToString();
            or1.Parameters.Add("KSLSMZT", OracleType.NVarChar).Value = dwData["KSLSMZT"].ToString();
            or1.Parameters.Add("KSLSPZT", OracleType.NVarChar).Value = dwData["KSLSPZT"].ToString();
            or1.Parameters.Add("KSLSRML", OracleType.NVarChar).Value = dwData["KSLSRML"].ToString();
            or1.Parameters.Add("KSLSRMS", OracleType.NVarChar).Value = dwData["KSLSRMS"].ToString();
            or1.Parameters.Add("KSLSRPZ", OracleType.NVarChar).Value = dwData["KSLSRPZ"].ToString();
            or1.Parameters.Add("KSLGKSTKRS", OracleType.NVarChar).Value = dwData["KSLGKSTKRS"].ToString();
            or1.Parameters.Add("KSLGKST", OracleType.NVarChar).Value = dwData["KSLGKST"].ToString();
            or1.Parameters.Add("KSLIAKSTKRS", OracleType.NVarChar).Value = dwData["KSLIAKSTKRS"].ToString();
            or1.Parameters.Add("KSLIAKST", OracleType.NVarChar).Value = dwData["KSLIAKST"].ToString();
            or1.Parameters.Add("KSLIMNRKRS", OracleType.NVarChar).Value = dwData["KSLIMNRKRS"].ToString();
            or1.Parameters.Add("KSLIMLFDNR", OracleType.NVarChar).Value = dwData["KSLIMLFDNR"].ToString();
            or1.Parameters.Add("KSLIMPOS", OracleType.NVarChar).Value = dwData["KSLIMPOS"].ToString();
            or1.Parameters.Add("KSLIEVARHNR", OracleType.NVarChar).Value = dwData["KSLIEVARHNR"].ToString();
            or1.Parameters.Add("KSLIEVARUNR", OracleType.NVarChar).Value = dwData["KSLIEVARUNR"].ToString();
            or1.Parameters.Add("KSLIMZT", OracleType.NVarChar).Value = dwData["KSLIMZT"].ToString();
            or1.Parameters.Add("KSLIPZT", OracleType.NVarChar).Value = dwData["KSLIPZT"].ToString();
            or1.Parameters.Add("KSLIRML", OracleType.NVarChar).Value = dwData["KSLIRML"].ToString();
            or1.Parameters.Add("KSLIRMS", OracleType.NVarChar).Value = dwData["KSLIRMS"].ToString();
            or1.Parameters.Add("KSLIRPZ", OracleType.NVarChar).Value = dwData["KSLIRPZ"].ToString();
            or1.Parameters.Add("KSLLIEFNR", OracleType.NVarChar).Value = dwData["KSLLIEFNR"].ToString();
            or1.Parameters.Add("KSLRENR", OracleType.NVarChar).Value = dwData["KSLRENR"].ToString();
            or1.Parameters.Add("KSLREPOS", OracleType.NVarChar).Value = dwData["KSLREPOS"].ToString();
            or1.Parameters.Add("KSLLSKOST", OracleType.NVarChar).Value = dwData["KSLLSKOST"].ToString();
            or1.Parameters.Add("KSLLIKOST", OracleType.NVarChar).Value = dwData["KSLLIKOST"].ToString();
            or1.Parameters.Add("KSLLIKOSTI", OracleType.NVarChar).Value = dwData["KSLLIKOSTI"].ToString();
            or1.Parameters.Add("KSLRSKOST", OracleType.NVarChar).Value = dwData["KSLRSKOST"].ToString();
            or1.Parameters.Add("KSLRIKOST", OracleType.NVarChar).Value = dwData["KSLRIKOST"].ToString();
            or1.Parameters.Add("KSLRIKOSTI", OracleType.NVarChar).Value = dwData["KSLRIKOSTI"].ToString();
            or1.Parameters.Add("KSLRSKOSTF", OracleType.NVarChar).Value = dwData["KSLRSKOSTF"].ToString();
            or1.Parameters.Add("KSLRIKOSTF", OracleType.NVarChar).Value = dwData["KSLRIKOSTF"].ToString();
            or1.Parameters.Add("KSLRIKOSTIF", OracleType.NVarChar).Value = dwData["KSLRIKOSTIF"].ToString();
            or1.Parameters.Add("KSLSQKOSTM1", OracleType.NVarChar).Value = dwData["KSLSQKOSTM1"].ToString();
            or1.Parameters.Add("KSLSQKOSTM2", OracleType.NVarChar).Value = dwData["KSLSQKOSTM2"].ToString();
            or1.Parameters.Add("KSLSQKOSTM3", OracleType.NVarChar).Value = dwData["KSLSQKOSTM3"].ToString();
            or1.Parameters.Add("KSLSQKOSTM4", OracleType.NVarChar).Value = dwData["KSLSQKOSTM4"].ToString();
            or1.Parameters.Add("KSLSQKOSTM5", OracleType.NVarChar).Value = dwData["KSLSQKOSTM5"].ToString();
            or1.Parameters.Add("KSLIQKOSTM1", OracleType.NVarChar).Value = dwData["KSLIQKOSTM1"].ToString();
            or1.Parameters.Add("KSLIQKOSTM2", OracleType.NVarChar).Value = dwData["KSLIQKOSTM2"].ToString();
            or1.Parameters.Add("KSLIQKOSTM3", OracleType.NVarChar).Value = dwData["KSLIQKOSTM3"].ToString();
            or1.Parameters.Add("KSLIQKOSTM4", OracleType.NVarChar).Value = dwData["KSLIQKOSTM4"].ToString();
            or1.Parameters.Add("KSLIQKOSTM5", OracleType.NVarChar).Value = dwData["KSLIQKOSTM5"].ToString();
            or1.Parameters.Add("KSLIQKOSTIM1", OracleType.NVarChar).Value = dwData["KSLIQKOSTIM1"].ToString();
            or1.Parameters.Add("KSLIQKOSTIM2", OracleType.NVarChar).Value = dwData["KSLIQKOSTIM2"].ToString();
            or1.Parameters.Add("KSLIQKOSTIM3", OracleType.NVarChar).Value = dwData["KSLIQKOSTIM3"].ToString();
            or1.Parameters.Add("KSLIQKOSTIM4", OracleType.NVarChar).Value = dwData["KSLIQKOSTIM4"].ToString();
            or1.Parameters.Add("KSLIQKOSTIM5", OracleType.NVarChar).Value = dwData["KSLIQKOSTIM5"].ToString();
            or1.Parameters.Add("KSLSQKOSTP1", OracleType.NVarChar).Value = dwData["KSLSQKOSTP1"].ToString();
            or1.Parameters.Add("KSLSQKOSTP2", OracleType.NVarChar).Value = dwData["KSLSQKOSTP2"].ToString();
            or1.Parameters.Add("KSLSQKOSTP3", OracleType.NVarChar).Value = dwData["KSLSQKOSTP3"].ToString();
            or1.Parameters.Add("KSLSQKOSTP4", OracleType.NVarChar).Value = dwData["KSLSQKOSTP4"].ToString();
            or1.Parameters.Add("KSLSQKOSTP5", OracleType.NVarChar).Value = dwData["KSLSQKOSTP5"].ToString();
            or1.Parameters.Add("KSLIQKOSTP1", OracleType.NVarChar).Value = dwData["KSLIQKOSTP1"].ToString();
            or1.Parameters.Add("KSLIQKOSTP2", OracleType.NVarChar).Value = dwData["KSLIQKOSTP2"].ToString();
            or1.Parameters.Add("KSLIQKOSTP3", OracleType.NVarChar).Value = dwData["KSLIQKOSTP3"].ToString();
            or1.Parameters.Add("KSLIQKOSTP4", OracleType.NVarChar).Value = dwData["KSLIQKOSTP4"].ToString();
            or1.Parameters.Add("KSLIQKOSTP5", OracleType.NVarChar).Value = dwData["KSLIQKOSTP5"].ToString();
            or1.Parameters.Add("KSLIQKOSTIP1", OracleType.NVarChar).Value = dwData["KSLIQKOSTIP1"].ToString();
            or1.Parameters.Add("KSLIQKOSTIP2", OracleType.NVarChar).Value = dwData["KSLIQKOSTIP2"].ToString();
            or1.Parameters.Add("KSLIQKOSTIP3", OracleType.NVarChar).Value = dwData["KSLIQKOSTIP3"].ToString();
            or1.Parameters.Add("KSLIQKOSTIP4", OracleType.NVarChar).Value = dwData["KSLIQKOSTIP4"].ToString();
            or1.Parameters.Add("KSLIQKOSTIP5", OracleType.NVarChar).Value = dwData["KSLIQKOSTIP5"].ToString();
            or1.Parameters.Add("KSLGSKOST1", OracleType.NVarChar).Value = dwData["KSLGSKOST1"].ToString();
            or1.Parameters.Add("KSLGSKOST2", OracleType.NVarChar).Value = dwData["KSLGSKOST2"].ToString();
            or1.Parameters.Add("KSLGSKOST3", OracleType.NVarChar).Value = dwData["KSLGSKOST3"].ToString();
            or1.Parameters.Add("KSLGSKOST4", OracleType.NVarChar).Value = dwData["KSLGSKOST4"].ToString();
            or1.Parameters.Add("KSLGSKOST5", OracleType.NVarChar).Value = dwData["KSLGSKOST5"].ToString();
            or1.Parameters.Add("KSLGIKOST1", OracleType.NVarChar).Value = dwData["KSLGIKOST1"].ToString();
            or1.Parameters.Add("KSLGIKOST2", OracleType.NVarChar).Value = dwData["KSLGIKOST2"].ToString();
            or1.Parameters.Add("KSLGIKOST3", OracleType.NVarChar).Value = dwData["KSLGIKOST3"].ToString();
            or1.Parameters.Add("KSLGIKOST4", OracleType.NVarChar).Value = dwData["KSLGIKOST4"].ToString();
            or1.Parameters.Add("KSLGIKOST5", OracleType.NVarChar).Value = dwData["KSLGIKOST5"].ToString();
            or1.Parameters.Add("KSLGIKOSTI1", OracleType.NVarChar).Value = dwData["KSLGIKOSTI1"].ToString();
            or1.Parameters.Add("KSLGIKOSTI2", OracleType.NVarChar).Value = dwData["KSLGIKOSTI2"].ToString();
            or1.Parameters.Add("KSLGIKOSTI3", OracleType.NVarChar).Value = dwData["KSLGIKOSTI3"].ToString();
            or1.Parameters.Add("KSLGIKOSTI4", OracleType.NVarChar).Value = dwData["KSLGIKOSTI4"].ToString();
            or1.Parameters.Add("KSLGIKOSTI5", OracleType.NVarChar).Value = dwData["KSLGIKOSTI5"].ToString();
            or1.Parameters.Add("KSLAENDZLST", OracleType.NVarChar).Value = dwData["KSLAENDZLST"].ToString();
            or1.Parameters.Add("KSLAENDZLSV", OracleType.NVarChar).Value = dwData["KSLAENDZLSV"].ToString();
            or1.Parameters.Add("KSLENDKZ", OracleType.NVarChar).Value = dwData["KSLENDKZ"].ToString();
            or1.Parameters.Add("KSLABG", OracleType.NVarChar).Value = dwData["KSLABG"].ToString();
            or1.Parameters.Add("KSLARBPL", OracleType.NVarChar).Value = dwData["KSLARBPL"].ToString();
            or1.Parameters.Add("KSLLSTAR", OracleType.NVarChar).Value = dwData["KSLLSTAR"].ToString();
            or1.Parameters.Add("KSLLO", OracleType.NVarChar).Value = dwData["KSLLO"].ToString();
            or1.Parameters.Add("KSLPAUFKRS", OracleType.NVarChar).Value = dwData["KSLPAUFKRS"].ToString();
            or1.Parameters.Add("KSLPAUFLFD", OracleType.NVarChar).Value = dwData["KSLPAUFLFD"].ToString();
            or1.Parameters.Add("KSLPAFOLGE", OracleType.NVarChar).Value = dwData["KSLPAFOLGE"].ToString();
            or1.Parameters.Add("KSLFILLER", OracleType.NVarChar).Value = dwData["KSLFILLER"].ToString();
            Connect2Proxy(or1);
        }

        #endregion

        #region======L==============
        public void InsertLOGINFO(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            or1 = OracleDB.CreateCommand();
            DataSet result = new DataSet();
            or1.CommandText = "INSERT INTO LOGINFO (FINTERID, FDESIGNNAME,FEDITDATE,FCLOTHNO,FCOLORNO,CAD2ITXSTATUS,FCADKEY) "
                + " VALUES (:FINTERID, :FDESIGNNAME,:FEDITDATE,:FCLOTHNO, :FCOLORNO,:CAD2ITXSTATUS,:FCADKEY) ";

            or1.Parameters.Add("FINTERID", OracleType.NVarChar).Value = dwData["FINTERID"].ToString();
            or1.Parameters.Add("FDESIGNNAME", OracleType.NVarChar).Value = dwData["FDESIGNNAME"].ToString();
            or1.Parameters.Add("FEDITDATE", OracleType.NVarChar).Value = dwData["FEDITDATE"].ToString();
            or1.Parameters.Add("FCLOTHNO", OracleType.NVarChar).Value = dwData["FCLOTHNO"].ToString();
            or1.Parameters.Add("FCOLORNO", OracleType.NVarChar).Value = dwData["FCOLORNO"].ToString();
            or1.Parameters.Add("CAD2ITXSTATUS", OracleType.NVarChar).Value = dwData["CAD2ITXSTATUS"].ToString();
            or1.Parameters.Add("FCADKEY", OracleType.NVarChar).Value = dwData["FCADKEY"].ToString();
            Connect2Proxy(or1);
        }

        #endregion

        #region======M==============
        public void InsertMDECK(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO MDECK(MDMANDANT, MDSA, MDAUFKRS, MDAUFLFD, MDAUFPOS, MDTYP, MDAFOLGE, MDMODNR, MDEINSTNR, MDRPOS, MDMAT, MDVAR, MDDAT, MDLO, MDLB, MDLP, MDAUFBKZ, MDMENGE, MDEINGET, MDZUGET, MDRESERV, MDVERBR, MDMEH, MDMATTYP, MDERLKZ, MDDISPOKZ, MDABRKZ, MDFILLER)"
                + " VALUES (:MDMANDANT,:MDSA, :MDAUFKRS, :MDAUFLFD, :MDAUFPOS,:MDTYP, '010', '000', '000', :MDRPOS, '00000000111000', '001', 20130806, 'TX', 'GM', '        ', ' ', 22340000, 0, 0, 0, 0, 'PCS', ' ', ' ', 'V', 'E', '00000000                         ')";
            or1.Parameters.Add("MDMANDANT", OracleType.NVarChar).Value = dwData["MDMANDANT"].ToString();
            or1.Parameters.Add("MDSA", OracleType.NVarChar).Value = dwData["MDSA"].ToString();
            or1.Parameters.Add("MDAUFKRS", OracleType.NVarChar).Value = dwData["MDAUFKRS"].ToString();
            or1.Parameters.Add("MDAUFLFD", OracleType.NVarChar).Value = dwData["MDAUFLFD"].ToString();
            or1.Parameters.Add("MDAUFPOS", OracleType.NVarChar).Value = dwData["MDAUFPOS"].ToString();
            or1.Parameters.Add("MDTYP", OracleType.NVarChar).Value = dwData["MDTYP"].ToString();
            or1.Parameters.Add("MDRPOS", OracleType.NVarChar).Value = dwData["MDRPOS"].ToString();
            Connect2Proxy(or1);
        }
        #endregion

        #region======P==============
        #endregion

        #region======Q==============

        public void InsertQPZUORD(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            //APZMANDANT APZART APZVAR APZANRKRS APZALFDNR APZSTUFE
            OracleCommand or1;

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO QPZUORD(QPZMANDANT, QPZARTST, QPZKUNDNR, QPZWERK, QPZABT, QPZART, QPZVAR, QPZPNRKRS, QPZPLFDNR, QPZAENZL, QPZAENB, QPZAEND, QPZNEUB, QPZNEUD, QPZSPEZIF, QPZSPSTA, QPZSPGRD, QPZZUSTAND, QPZPKUNDNR, QPZPADRSL, QPZLIEFNR, QPZLAFDL, QPZLADS, QPZFKZ, QPZAUFBER, QPZDRTRB, QPZFILLER)"
                                + " VALUES (:QPZMANDANT,:QPZARTST, '00000000', '   ', '   ',:QPZART, :QPZVAR, :QPZPNRKRS,:QPZPLFDNR, 0, '        ', 0, :QPZNEUB, :QPZNEUD,:QPZSPEZIF, 'N', '                              ', '    ', '        ', '        ', '        ', '        ', '        ', '  ', '  ', '     ', '            ')";
            or1.Parameters.Add("QPZMANDANT", OracleType.NVarChar).Value = dwData["QPZMANDANT"].ToString();
            or1.Parameters.Add("QPZARTST", OracleType.NVarChar).Value = dwData["QPZARTST"].ToString();
            or1.Parameters.Add("QPZART", OracleType.NVarChar).Value = dwData["QPZART"].ToString();
            or1.Parameters.Add("QPZVAR", OracleType.NVarChar).Value = dwData["QPZVAR"].ToString();
            or1.Parameters.Add("QPZPNRKRS", OracleType.NVarChar).Value = dwData["QPZPNRKRS"].ToString();
            or1.Parameters.Add("QPZPLFDNR", OracleType.NVarChar).Value = dwData["QPZPLFDNR"].ToString();
            or1.Parameters.Add("QPZNEUB", OracleType.NVarChar).Value = dwData["QPZNEUB"].ToString();
            or1.Parameters.Add("QPZNEUD", OracleType.NVarChar).Value = dwData["QPZNEUD"].ToString();
            or1.Parameters.Add("QPZSPEZIF", OracleType.NVarChar).Value = dwData["QPZSPEZIF"].ToString();
            setResult = Connect2Proxy(or1);
        }
        #endregion

        #region=====S==============
        public void InsertSDDAT(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO SDDAT(SDSA,SDKEY,SDDATEN)"
                + "VALUES (:SDSA,:SDKEY, :SDDATEN)";
            or1.Parameters.Add("SDSA", OracleType.NVarChar).Value = dwData["SDSA"];
            or1.Parameters.Add("SDKEY", OracleType.NVarChar).Value = dwData["SDKEY"];
            or1.Parameters.Add("SDDATEN", OracleType.NVarChar).Value = dwData["SDDATEN"];
            Connect2Proxy(or1);
        }
        #endregion

        #region======W==============

        public void InsertWASTAMM(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (Company)
            {
                case "JLT":
                    or1.CommandText = "INSERT INTO WASTAMM(WAMANDANT, WAKUNDNR, WAWERK, WAABT, WAART, WAVAR, WAAENZL, WAAENB, WAAEND, WANEUB, WANEUD, WABEZ, WAMTART, WAMU, WARKZ, WAFKZ, WAMUART, WAMUNR, WAHERLD, WAFDDIM, WAMURLOD, WAMUPROD, WAMUCTOD, WAMUDTRL, WAMUBIRL, WAGASTA, WAMASTA, WAKESTA, WAROSTA, WARBSTA, WAFBSTA, WARPROF, WAFPROF, WARLSTA, WAFLSTA, WARSTAKZ, WAWAART, WARFERTKZ, WARKL, WARMEHRB, WARVOLL, WARAUFM, WATRAUFM, WATRLG, WARSTDLG, WARSTDGW, WARABLOM, WARMUNR, WARBEM, WATEXTE1, WATEXTE2, WATEXTE3, WATEXTE4, WAKRITI, WARGKZ1, WAGFKZ, WARAUFT, WARAUFD, WARUNGLFM, WARUNGQM, WARUNBRT, WARUNFDK, WARUNFDS, WARWBRT, WARBRLST, WARBRTOL, WARGRQM, WARGRLFD, WARGWTOL, WARARTDICKE, WARARTTOLP, WARARTTOLM, WARFDDIK, WARFDDIS, WABIND, WARIPP, WASCHLICHTGR, WASCHLICHTNR, WAEINZNR, WATSDSCH, WASTTEIL, WAFSTAKZ, WAFFERTKZ, WAAUSART, WASTUEART, WAVWART, WAVWVAR, WAVARFR, WAFMEHRB, WAFVOLL, WAFAUFM, WAFSTDLG, WAFSTDGW, WAFABLOM, WAGVORL, WAOVORL, WAFRBST, WALAMFR, WAFGKZ1, WAFGKZ2, WAFGKZ3, WASCHLKZ, WAFAUFT, WAFAUFD, WAFKART, WAKOLL, WAFBEM, WAFUNGLFM, WAFUNGQM, WAFUNBRT, WAFUNFDK, WAFUNFDS, WAFBRTU, WAFBRTUT, WAFBRTL, WAFBRTLT, WASCHNK, WALAEAEND, WARENDEM, WARENDEMNT, WAGWVERL, WAALKV, WAFGRQM, WAFGRLFD, WAFGWTOL, WAFARTDICKE, WAFARTTOLP, WAFARTTOLM, WAFFDDIK, WAFFDDIS, WAUNI, WACOLORKZ, WAUNIGA, WAGEWICHT2, WAFVERF1, WAFVERF2, WAFVERF3, WAFVERF4, WAFZUSTAND1, WAFZUSTAND2, WAFZUSTAND3, WAFZUSTAND4, WAFVERFN1, WAFVERFN2, WAFVERFN3, WAFVERFN4, WAFFGRPN1, WAFFGRPN2, WAFFGRPN3, WAFFGRPN4, WAVNRKZ, WAZUSTKZ, WAUEKLOKZ, WAFSUBST, WAMAXFA, WAAKZWG, WAFRESTF, WADRUCKBAR, WAVBRGQM, WALEDR, WADVERF1, WADVERF2, WADVERF3, WADVERF4, WADZUSTAND1, WADZUSTAND2, WADZUSTAND3, WADZUSTAND4, WADVERFN1, WADVERFN2, WADVERFN3, WADVERFN4, WADFGRPN1, WADFGRPN2, WADFGRPN3, WADFGRPN4, WADSUBST, WADRESTF, WAFAKTOR, WABSUBST, WAVORBWA, WANACHBWA, WAVORBFB, WANACHBFB, WAVORBDR, WANACHBDR, WAVORBAP, WANACHBAP, WAMVB, WAMNB, WACVB, WACNB, WABVB, WABNB, WASVB, WASNB, WASUBSTGR, WAHANDICAP, WAZUSCHAB, WALOSGRFB, WAQCCHECK, WADART, WADVAR, WADSTDKZ, WADSACHB, WASCHNKZ, WAPROGRP, WAARTGRP, WAWBZEIT, WAMINBST, WAMAXBST, WAOPTMGR, WAOPTMGF, WARMINPMENG, WAFMINPMENG, WAUEBM, WAUEBG, WAUEBF, WAMATPRF, WABRTPRF, WAGQMPRF, WASTKGP, WASCHLIP, WASCHLIA, WALPABR, WADISPZS, WADRPAR, WAZUSTR, WAWDSUM, WASTSKZ, WASTSART, WASTSAUF, WASTSLG, WASTSDKZ, WAFILLER1, WAVOLU, WAVOLAM, WAVOLDIAM, WAVOLMTR, WAVOLAMVOL, WAANAB, WAALBIS, WAPLGRP, WAPRODH, WAMATKL, WAPMGRP, WAPRFSCHL, WAKAART, WAKAVAR, WAKASTD, WAKAZGRP, WAKAPRGRPN1, WAKAPRGRPN2, WAKAPRGRPN3, WAKAAGRA, WAKAAGRP, WAZWTWAHL, WAVERL, WAABR, WAABRTOL, WAKABRT, WARKABRTOL, WAFKABRTOL, WAMATKTO, WAKTO1, WAGV, WAKBON, WAMGKMM, WAMEZ, WAWAG, WABKLAS, WABWPLAN, WAEKGRP, WABSTME, WAVABME, WAEKWSL, WALIEFNR, WAEG, WABON, WAKUNDE, WALOHNW, WALOHNA, WASCHLIAUF, WAPFCODE, WAAUFKZ, WAMRKM1, WAMRKM2, WAMRKM3, WAMRKM4, WAMRKM5, WAESACHB, WAESACHBKZ, WAFBGRLFM, WAPRUEFKZ, WAPRUEFBEN, WAPRUEFDAT, WARAVGRP, WATAX, WAPARTBA, WAFDDIF, WAINSPCOR, WAINSPGRP, WAKENNFD, WAFILLER2)"
                        + " VALUES (:WAMANDANT, '00000000', '   ', '   ',:WAART, '  ', 1, :WAVAR, 20140107, :WANEUB, :WANEUD, '01                                      ', '    ', ' ', 'J', 'J', '                    ', '                    ', '   ', 'INC', '00', '00', ' ', 0, '        ', 'V', 'V', 'V', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'A', 'GEW', 'E', '    ', ' ', 'P', '  ', '  ', 0, 130000, 20410, 'F99999    ', '               ', '                                        ', '          ', '          ', '          ', '          ', 'N', ' ', 'J', '        ', 0, ' ', ' ', ' ', ' ', ' ', 1570, 0, 0, 100, 157, 200, '0000', '0000', '0000', 11800, 7700, 'J3-2014        ', 0, '     ', '000000000000000', 'J3-2014        ', 3941, 'J', 'A', 'E', 'FI  ', '   ',:WAART, '  ', 'J', ' ', 'P', '  ', 200000, 3140, '          ', '          ', '          ', 'C ', 'N', ' ', ' ', ' ', ' ', '        ', 0, '          ', '     ', '                                        ', ' ', ' ', ' ', ' ', ' ', 1460, 0, 1460, 0, 0, 5, 0, 0, 0, '00', 108, 157, 0, '0000', '0000', '0000', 12700, 7800, ' ', ' ', ' ', 0, '   ', '   ', '   ', '   ', '    ', '    ', '    ', '    ', '   ', '   ', '   ', '   ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '               ', 0, 0, 0, ' ', 0, 0, '   ', '   ', '   ', '   ', '    ', '    ', '    ', '    ', '   ', '   ', '   ', '   ', ' ', ' ', ' ', ' ', '               ', 0, 0, '               ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', 'J3-', '   ', 0, 0, ' ', :WAART, '  ', 'J', '        ', ' ', 'MS ', '12 ', '00', 0, 0, 5000, 5000, 0, 0, 'M  ', '2', '000001000000', ' ', ' ', ' ', ' ', ' ', ' ', 'N', 'N', '     ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '          ', 0, '  ', 0, 0, 0, 0, 0, '  ', '                  ', '         ', '    ', '         ', :WAART, '  ', 'J', 'GGG', ' ', ' ', ' ', '     ', '  ', 80, 50, 0, '0', 0, 0, 0, '      ', '      ', '      ', 0, '        ', 0, 0, '    ', ' ', '   ', '   ', ' ', '    ', '        ', 'N', 'N', '        ', '                    ', '                    ', 0, '     ', ' ', '    ', '    ', '    ', '    ', '    ', '        ', 'B', 0, 'N', '        ', 0, '10  ', 'RMB', ' ', 25400, '    ', '    ', ' ', '                               ')";
                    or1.Parameters.Add("WAMANDANT", OracleType.NVarChar).Value = dwData["WAMANDANT"].ToString();
                    or1.Parameters.Add("WAART", OracleType.NVarChar).Value = dwData["WAART"].ToString();
                    or1.Parameters.Add("WAVAR", OracleType.NVarChar).Value = dwData["WAVAR"].ToString();
                    or1.Parameters.Add("WANEUB", OracleType.NVarChar).Value = dwData["WANEUB"].ToString();
                    or1.Parameters.Add("WANEUD", OracleType.Number).Value = dwData["WANEUD"].ToString();
                    break;
                default:
                    or1.CommandText = "INSERT INTO WASTAMM(WAMANDANT, WAKUNDNR, WAWERK, WAABT, WAART, WAVAR, WAAENZL, WAAENB, WAAEND, WANEUB, WANEUD, WABEZ, WAMTART, WAMU, WARKZ, WAFKZ, WAMUART, WAMUNR, WAHERLD, WAFDDIM, WAMURLOD, WAMUPROD, WAMUCTOD, WAMUDTRL, WAMUBIRL, WAGASTA, WAMASTA, WAKESTA, WAROSTA, WARBSTA, WAFBSTA, WARPROF, WAFPROF, WARLSTA, WAFLSTA, WARSTAKZ, WAWAART, WARFERTKZ, WARKL, WARMEHRB, WARVOLL, WARAUFM, WATRAUFM, WATRLG, WARSTDLG, WARSTDGW, WARABLOM, WARMUNR, WARBEM, WATEXTE1, WATEXTE2, WATEXTE3, WATEXTE4, WAKRITI, WARGKZ1, WAGFKZ, WARAUFT, WARAUFD, WARUNGLFM, WARUNGQM, WARUNBRT, WARUNFDK, WARUNFDS, WARWBRT, WARBRLST, WARBRTOL, WARGRQM, WARGRLFD, WARGWTOL, WARARTDICKE, WARARTTOLP, WARARTTOLM, WARFDDIK, WARFDDIS, WABIND, WARIPP, WASCHLICHTGR, WASCHLICHTNR, WAEINZNR, WATSDSCH, WASTTEIL, WAFSTAKZ, WAFFERTKZ, WAAUSART, WASTUEART, WAVWART, WAVWVAR, WAVARFR, WAFMEHRB, WAFVOLL, WAFAUFM, WAFSTDLG, WAFSTDGW, WAFABLOM, WAGVORL, WAOVORL, WAFRBST, WALAMFR, WAFGKZ1, WAFGKZ2, WAFGKZ3, WASCHLKZ, WAFAUFT, WAFAUFD, WAFKART, WAKOLL, WAFBEM, WAFUNGLFM, WAFUNGQM, WAFUNBRT, WAFUNFDK, WAFUNFDS, WAFBRTU, WAFBRTUT, WAFBRTL, WAFBRTLT, WASCHNK, WALAEAEND, WARENDEM, WARENDEMNT, WAGWVERL, WAALKV, WAFGRQM, WAFGRLFD, WAFGWTOL, WAFARTDICKE, WAFARTTOLP, WAFARTTOLM, WAFFDDIK, WAFFDDIS, WAUNI, WACOLORKZ, WAUNIGA, WAGEWICHT2, WAFVERF1, WAFVERF2, WAFVERF3, WAFVERF4, WAFZUSTAND1, WAFZUSTAND2, WAFZUSTAND3, WAFZUSTAND4, WAFVERFN1, WAFVERFN2, WAFVERFN3, WAFVERFN4, WAFFGRPN1, WAFFGRPN2, WAFFGRPN3, WAFFGRPN4, WAVNRKZ, WAZUSTKZ, WAUEKLOKZ, WAFSUBST, WAMAXFA, WAAKZWG, WAFRESTF, WADRUCKBAR, WAVBRGQM, WALEDR, WADVERF1, WADVERF2, WADVERF3, WADVERF4, WADZUSTAND1, WADZUSTAND2, WADZUSTAND3, WADZUSTAND4, WADVERFN1, WADVERFN2, WADVERFN3, WADVERFN4, WADFGRPN1, WADFGRPN2, WADFGRPN3, WADFGRPN4, WADSUBST, WADRESTF, WAFAKTOR, WABSUBST, WAVORBWA, WANACHBWA, WAVORBFB, WANACHBFB, WAVORBDR, WANACHBDR, WAVORBAP, WANACHBAP, WAMVB, WAMNB, WACVB, WACNB, WABVB, WABNB, WASVB, WASNB, WASUBSTGR, WAHANDICAP, WAZUSCHAB, WALOSGRFB, WAQCCHECK, WADART, WADVAR, WADSTDKZ, WADSACHB, WASCHNKZ, WAPROGRP, WAARTGRP, WAWBZEIT, WAMINBST, WAMAXBST, WAOPTMGR, WAOPTMGF, WARMINPMENG, WAFMINPMENG, WAUEBM, WAUEBG, WAUEBF, WAMATPRF, WABRTPRF, WAGQMPRF, WASTKGP, WASCHLIP, WASCHLIA, WALPABR, WADISPZS, WADRPAR, WAZUSTR, WAWDSUM, WASTSKZ, WASTSART, WASTSAUF, WASTSLG, WASTSBRT, WASTSDKZ, WAFILLER1, WAVOLU, WAANAB, WAALBIS, WAPLGRP, WAPRODH, WAMATKL, WAPMGRP, WAPRFSCHL, WAKAART, WAKAVAR, WAKASTD, WAKAZGRP, WAKAPRGRPN1, WAKAPRGRPN2, WAKAPRGRPN3, WAKAAGRA, WAKAAGRP, WAZWTWAHL, WAVERL, WAABR, WAABRTOL, WAKABRT, WARKABRTOL, WAFKABRTOL, WAMATKTO, WAKTO1, WAGV, WAKBON, WAMGKMM, WAMEZ, WAWAG, WABKLAS, WABWPLAN, WAEKGRP, WABSTME, WAVABME, WAEKWSL, WALIEFNR, WAEG, WABON, WAKUNDE, WALOHNW, WALOHNA, WASCHLIAUF, WAPFCODE, WAAUFKZ, WAMRKM1, WAMRKM2, WAMRKM3, WAMRKM4, WAMRKM5, WAESACHB, WAESACHBKZ, WAFBGRLFM, WAPRUEFKZ, WAPRUEFBEN, WAPRUEFDAT, WARAVGRP, WATAX, WAPARTBA, WAFDDIF, WAFILLER2)"
                        + "VALUES (:WAMANDANT, '00000000', '   ', '   ', :WAART, :WAVAR, 1, '        ', 0, :WANEUB, :WANEUD, '                                        ', '    ', ' ', 'J', 'J', '                    ', '                    ', '   ', 'INC', '00', '00', ' ', 0, '        ', 'V', 'V', 'V', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'A', 'GEW', 'E', '    ', ' ', 'P', '  ', '  ', 0, 200000, 25400, '          ', '               ', '                                        ', '          ', '          ', '          ', '          ', 'N', ' ', 'J', '        ', 0, ' ', ' ', ' ', ' ', ' ', 0, 0, 0, 0, 0, 0, '0000', '0000', '0000', 0, 0, '               ', 0, '     ', '000000000000000', '               ', 0, 'J', 'A', 'E', 'FI  ', '   ', '                    ', '  ', 'J', ' ', 'P', '  ', 0, 0, '          ', '          ', '          ', 'C ', 'N', ' ', ' ', ' ', ' ', '        ', 0, '          ', '     ', '                                        ', ' ', ' ', ' ', ' ', ' ', 0, 0, 0, 0, 0,0, 0, 0, 0, '00', 0, 0, 0, '0000', '0000', '0000', 0, 0, ' ', ' ', ' ', 0, '   ', '   ', '   ', '   ', '    ', '    ', '    ', '    ', '   ', '   ', '   ', '   ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '               ', 0, 0, 0, ' ', 0, 0, '   ', '   ', '   ', '   ', '    ', '    ', '    ', '    ', '   ', '   ', '   ', '   ', ' ', ' ', ' ', ' ', '               ', 0, 0, '               ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', 0, 0, ' ', '                    ', '  ', 'J', '        ', ' ', '   ', '   ', '00', 0, 0, 5000, 5000, 0, 0, 'MTR', '2', '000001000000', ' ', ' ', ' ', ' ', ' ', ' ', 'N', 'N', '     ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '         ', 0, 0, 0, '  ', '                  ', '         ', '    ', '         ', '                    ', '  ', 'J', 'GGG', ' ', ' ', ' ', '     ', '  ', 80, 50, 0, '0', 0, 0, 0, '      ', '      ', '      ', 0, '        ', 0, 0, '    ', ' ', '   ', '   ', ' ', '    ', '        ', 'N', 'N', '        ', '                    ', '                    ', 0, '     ', ' ', '    ', '    ', '    ', '    ', '    ', '        ', 'B', 0, 'N', '        ', 0, '10  ', 'RMB', ' ', 25400, '                                                      ')";
                    or1.Parameters.Add("WAMANDANT", OracleType.NVarChar).Value = dwData["WAMANDANT"].ToString();
                    or1.Parameters.Add("WAART", OracleType.NVarChar).Value = dwData["WAART"].ToString();
                    or1.Parameters.Add("WAVAR", OracleType.NVarChar).Value = dwData["WAVAR"].ToString();
                    or1.Parameters.Add("WANEUB", OracleType.NVarChar).Value = dwData["WANEUB"].ToString();
                    or1.Parameters.Add("WANEUD", OracleType.Number).Value = dwData["WANEUD"].ToString();
                    break;
            }
            Connect2Proxy(or1);
        }

        public void InsertWAPROF(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WAPROF(WAPMANDANT, WAPKUNDNR, WAPWERK, WAPABT, WAPWAKZ, WAPART, WAPVAR, WAPPOS, WAPANFART, WAPBEM, WAPBIS, WAPNUMKZ, WAPME, WAPMIN, WAPMAX, WAPZUSKZ, WAPZUSATZ, WAPFILLER)"
               + " VALUES (:WAPMANDANT, '00000000', '   ', '   ', :WAPWAKZ,:WAPART, :WAPVAR, :WAPPOS, :WAPANFART,:WAPBEM, '    ', 'J', '%  ', :WAPMIN, :WAPMAX, ' ', '          ', '                            ')";
            or1.Parameters.Add("WAPMANDANT", OracleType.NVarChar).Value = dwData["WAPMANDANT"].ToString();
            or1.Parameters.Add("WAPWAKZ", OracleType.NVarChar).Value = dwData["WAPWAKZ"].ToString();
            or1.Parameters.Add("WAPART", OracleType.NVarChar).Value = dwData["WAPART"].ToString();
            or1.Parameters.Add("WAPVAR", OracleType.NVarChar).Value = dwData["WAPVAR"].ToString();
            or1.Parameters.Add("WAPPOS", OracleType.NVarChar).Value = dwData["WAPPOS"].ToString();
            or1.Parameters.Add("WAPANFART", OracleType.NVarChar).Value = dwData["WAPANFART"].ToString();
            or1.Parameters.Add("WAPBEM", OracleType.NVarChar).Value = dwData["WAPBEM"].ToString();
            or1.Parameters.Add("WAPMIN", OracleType.NVarChar).Value = dwData["WAPMIN"].ToString();
            or1.Parameters.Add("WAPMAX", OracleType.NVarChar).Value = dwData["WAPMAX"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWASTKE(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WASTKE(WAKMANDANT, WAKKUNDNR, WAKWERK, WAKABT, WAKART, WAKVAR, WAKWCOL, WAKPOS, WAKKART, WAKKVAR, WAKKFARBE, WAKBAUMKZ, WAKVERWEN, WAKANZBA, WAKDIVISOR, WAKEAFAKTM, WAKEAFAKTR, WAKDISPOKZ, WAKSTBR, WAKLLEIST, WAKRLEIST, WAKRBEM, WAKNET, WAKBRUT, WAKROSTA, WAKSBSTUE, WAKEARUE, WAKSTICH, WAKSCHIEART, WAKSCHIENE, WAKLAENG, WAKEINL, WAKSPANNV, WAKSPANNB, WAKSPANNF, WAKVERSATZ, WAKVARKZ, WAKABFFDZ, WAKUSEDFDZ, WAKFILLER, WAKAENZL, WAKAENB, WAKAEND, WAKNEUB, WAKNEUD)"
                + " VALUES (:WAKMANDANT, '00000000', '   ', '   ', :WAKART, :WAKVAR, :WAKWCOL, :WAKPOS, '                    ', '  ', '          ', 'Z', 'S', '01', '01', 0, 0, 'B', 'D', '    ', '    ', '                 ', 0, 0, 'N', 'V', 0, 0, ' ', '     ', 0, 0, 0, 0, '00', 0, ' ', 0, 0, '                      ', 0, '        ', 0, '        ', 0)";
            or1.Parameters.Add("WAKMANDANT", OracleType.NVarChar).Value = dwData["WAKMANDANT"].ToString();
            or1.Parameters.Add("WAKART", OracleType.NVarChar).Value = dwData["WAKART"].ToString();
            or1.Parameters.Add("WAKVAR", OracleType.NVarChar).Value = dwData["WAKVAR"].ToString();
            or1.Parameters.Add("WAKWCOL", OracleType.NVarChar).Value = dwData["WAKWCOL"].ToString();
            or1.Parameters.Add("WAKPOS", OracleType.NVarChar).Value = dwData["WAKPOS"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertWASTGA(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;

            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WASTGA(WAGMANDANT, WAGKUNDNR, WAGWERK, WAGABT, WAGART, WAGVAR, WAGWCOL, WAGPSA, WAGPOS, WAGFOLGEPOS, WAGGART, WAGGVAR, WAGGFARBE, WAGFDZ, WAGABFKZ, WAGABF, WAGABFLG, WAGKGNET, WAGKGBRUT, WAGDISPOKZ, WAGBEM, WAGEAFAKTOR, WAGGRLFDM, WAGKZQM, WAGPROZWG, WAGABFALL, WAGAUFM, WAGANT, WAGEINL, WAGSPANNV, WAGSPANNB, WAGSPANNF, WAGVARKZ, WAGNA1, WAGNA2, WAGNA3, WAGNA4, WAGNA5, WAGNP, WAGWEAVIN, WAGWEEMBR, WAGFLOATING, WAGFL, WAGFLNA1, WAGFLNA2, WAGFLNA3, WAGFLNA4, WAGFLNA5, WAGFLNP, WAGFILLER) "
                + " VALUES (:WAGMANDANT, '00000000', '   ', '   ', :WAGART, :WAGVAR, :WAGWCOL, '1', :WAGPOS, :WAGFOLGEPOS, '                    ', '   ', '          ', 0, ' ', 0, 0, 0, 0, 'B', '          ', 0, 0, ' ', 0, 0, '  ', 0, 0, 0, 0, '00', ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, '  ', 0, 0, 0, 0, 0, 0, '                                              ')";
            or1.Parameters.Add("WAGMANDANT", OracleType.NVarChar).Value = dwData["WAGMANDANT"].ToString();
            or1.Parameters.Add("WAGART", OracleType.NVarChar).Value = dwData["WAGART"].ToString();
            or1.Parameters.Add("WAGVAR", OracleType.NVarChar).Value = dwData["WAGVAR"].ToString();
            or1.Parameters.Add("WAGWCOL", OracleType.NVarChar).Value = dwData["WAGWCOL"].ToString(); ;
            or1.Parameters.Add("WAGPOS", OracleType.NVarChar).Value = dwData["WAGPOS"].ToString();
            or1.Parameters.Add("WAGFOLGEPOS", OracleType.Number).Value = dwData["WAGFOLGEPOS"].ToString();
            setResult = Connect2Proxy(or1);
        }
        public void InsertWTSCHUSS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            //WTSMANDANT WTSSFLGNR  WTSNEUBEN WTSNEUDAT 
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WTSCHUSS(WTSMANDANT, WTSSFLGNR, WTSSTAKZ, WTSBEZ, WTSCADKEY1, WTSCADKEY2, WTSMUSTER, WTSSRAPP, WTSGRAPP, WTSJAC, WTSPATRONE, WTSREGU, WTSANZFARB, WTSANZMFS, WTSGRDSCHT, WTSFOLGE, WTSSCHUSS01, WTSSCHUSS02, WTSAENDZL, WTSAENDBEN, WTSAENDDAT, WTSNEUBEN, WTSNEUDAT, WTSFAKTOR, WTSFILLER)"
                + " VALUES (:WTSMANDANT, :WTSSFLGNR, ' ', '                    ', '             ', '      ', 'N', 0, 0, ' ', '               ', '          ', 0, '0', 0, "
            + "'312031202020202000000000473220312020202020000000004720202020202020200000000020202020202020202000000000202020202020202020000000002020202020202020200000000020202020202020202000000000202020202020202020000000002020202020202020200000000020202020202020202000000000202020202020202020000000002020202020202020200000000020202020202020202000000000202020202020202020000000002020202020202020200000000020202020202020202000000000202020202020202020000000002020202020202020200000000020202020202020202000000000202020202020202020000000002020202020202020200000000020202020202020202000000000202020202020202020000000002020202020202020200000000020', '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',"
            + "1, :WTSAENDBEN, :WTSAENDDAT,:WTSNEUBEN, :WTSNEUDAT, '0000', '                                                                                           ')";
            or1.Parameters.Add("WTSMANDANT", OracleType.NVarChar).Value = dwData["WTSMANDANT"].ToString();
            or1.Parameters.Add("WTSSFLGNR", OracleType.NVarChar).Value = dwData["WTSSFLGNR"].ToString();
            or1.Parameters.Add("WTSAENDBEN", OracleType.NVarChar).Value = dwData["WTSAENDBEN"].ToString();
            or1.Parameters.Add("WTSAENDDAT", OracleType.Number).Value = dwData["WTSAENDDAT"].ToString();
            or1.Parameters.Add("WTSNEUBEN", OracleType.NVarChar).Value = dwData["WTSNEUBEN"].ToString();
            or1.Parameters.Add("WTSNEUDAT", OracleType.Number).Value = dwData["WTSNEUDAT"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWAFARBEN(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WAFARBEN(WAFMANDANT, WAFKUNDNR, WAFWERK, WAFABT, WAFART, WAFVAR, WAFZUART, WAFZUSATZ, WAFCOLORIT, WAFSTATUS, WAFSFKZ, WAFBEZ, WAFTEXTSCHL, WAFFKARTNR, WAFROHFARBE, WAFMUDESS, WAFUNIFARB, WAFVGRQM, WAFVOLU, WAFZTWAHL, WAFRAPPH, WAFRAPPB, WAFRUESTGRP, WAFPRUEFGRP, WAFSCHABANZ, WAFUSCHABANZ, WAFFDVF, WAFPRGRP, WAFGRPBEZ, WAFPREIS, WAFZUABPR, WAFZUABAB, WAFNFART, WAFWERT, WAFKZPA, WAFZUABVH, WAFZUABAK, WAFZUABKU, WAFZUABPROZ, WAFEZUSTAND1, WAFEZUSTAND2, WAFEZUSTAND3, WAFEZUSTAND4, WAFEZUSTAND5, WAFEZUSTAND6, WAFEZUSTAND7, WAFEZUSTAND8, WAFEZUSTAND9, WAFEZUSTAND10, WAFFA, WAFGA, WAFQA, WAFQPKTH, WAFQPKTLH, WAFLOAN, WAFLBAN, WAFLPAN, WAFABKZAN, WAFPKL, WAFVBBRT, WAFBRTTOLPL, WAFBRTTOLMI, WAFVBGRQM, WAFVBGRLFD, WAFGWTOLPL, WAFGWTOLMIN, WAFVBFDDIK, WAFFDKTOLPL, WAFFDKTOLMI, WAFVBFDDIS, WAFFDSTOLPL, WAFFDSTOLMI, WAFLAEAEND, WAFGWVERL, WAFRESTSCHL, WAFPHWERTMI, WAFPHWERTMA, WAFWEISSGRD, WAFNETZFVON, WAFNETZFBIS, WAFNETZFSEK, WAFRSSFTRKV, WAFRSSFTRKB, WAFRSSFTRSV, WAFRSSFTRSB, WAFUNIFAEH, WAFFADGERAD, WAFMUSTFRB, WAFVORB, WAFNACHB, WAFMU, WAFMURLOD, WAFMUPROD, WAFMUCTOD, WAFMUDTRL, WAFMUBIRL, WAFHUNGLFM, WAFHUNGQM, WAFHUNBRT, WAFHUNFDK, WAFHUNFDS, WAFLMANRKRS, WAFLMALFDNR, WAFLMAPOS, WAFLODKRS, WAFLODLFD, WAFLODPOS, WAFKZDUMCOL, WAFPSEUDOCOL, WAFPRFSCHL, WAFFILLER, WAFAENDZL, WAFAENDBEN, WAFAENDDAT, WAFNEUBEN, WAFNEUDAT)"
                + "VALUES (:WAFMANDANT, '00000000', '   ', '   ',:WAFART,:WAFVAR, :WAFZUART,:WAFZUSATZ, '          ', 'A', 'N', :WAFBEZ"
            + ", '          ', '          ', '          ', '          ', '          ', 0, 0, 0, 0, 0, '   ', ' ', 0, 0, '   ', ' ', '                    ', 0, 0, 0, '    ', 0, ' ', 0, 0, 0, ' ', '    ', '    ', '    ', '    ', '    ', '    ', '    ', '    '"
            + ", '    ', '    ', 0, 0, 0, 0, 0, '  ', '  ', '        ', ' ', '  ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', ' ', '          ', '   ', '   ', ' ', '00', '00', ' '"
            + ", 0, '        ', ' ', ' ', ' ', ' ', ' ', '  ', '    ', '  ', '  ', '      ', '   ', ' ', '          ', '         ', '                                                           ', 0, '        ', 0, :WAFNEUBEN, :WAFNEUDAT)";
            or1.Parameters.Add("WAFMANDANT", OracleType.NVarChar).Value = dwData["WAFMANDANT"].ToString();
            or1.Parameters.Add("WAFART", OracleType.NVarChar).Value = dwData["WAFART"].ToString();
            or1.Parameters.Add("WAFVAR", OracleType.NVarChar).Value = dwData["WAFVAR"].ToString();
            or1.Parameters.Add("WAFZUART", OracleType.NVarChar).Value = dwData["WAFZUART"].ToString();
            or1.Parameters.Add("WAFZUSATZ", OracleType.NVarChar).Value = dwData["WAFZUSATZ"].ToString();
            or1.Parameters.Add("WAFBEZ", OracleType.NVarChar).Value = dwData["WAFBEZ"].ToString();
            or1.Parameters.Add("WAFNEUBEN", OracleType.NVarChar).Value = dwData["WAFNEUBEN"].ToString();
            or1.Parameters.Add("WAFNEUDAT", OracleType.Number).Value = dwData["WAFNEUDAT"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWASTPASS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO WASTPASS(WSPMANDANT, WSPKUNDNR, WSPWERK, WSPABT, WSPART, WSPVAR, WSPPOS, WSPPASS)"
                + "VALUES (:WSPMANDANT, '00000000', '   ', '   ', :WSPART, :WSPVAR, :WSPPOS,:WSPPASS)";
            or1.Parameters.Add("WSPMANDANT", OracleType.NVarChar).Value = dwData["WSPMANDANT"].ToString();
            or1.Parameters.Add("WSPART", OracleType.NVarChar).Value = dwData["WSPART"].ToString();
            or1.Parameters.Add("WSPVAR", OracleType.NVarChar).Value = dwData["WSPVAR"].ToString();
            or1.Parameters.Add("WSPPOS", OracleType.Number).Value = dwData["WSPPOS"].ToString();
            or1.Parameters.Add("WSPPASS", OracleType.NVarChar).Value = dwData["WSPPASS"].ToString();
            Connect2Proxy(or1);
        }

        public void InsertWDECK(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WDECK(WDMANDANT, WDSA, WDAUFKRS, WDAUFLFD, WDAUFPOS, WDTYP, WDUPOS, WDKUNDNR, WDWERK, WDABT, WDWAKZ, WDART, WDDESS, WDCOLORIT, WDFARBE, WDBESCHICH, WDVAR, WDZUSTAND, WDDAT, WDLO, WDZS, WDAFOLGE, WDBEDARF, WDZUGET, WDRESERV, WDVERBR, WDANZSTK, WDKZBEDARF, WDURAUFKRS, WDURAUFLFD, WDURAUFPOS, WDVKNPOS, WDPGLKZ, WDABRKZ, WDDISPOKZ, WDERLKZ, WDSLPOS, WDPRART, WDPRVAR, WDBEDBAS, WDLAGE, WDVARFR, WDBEDST, WDFILLER)"
                                                            + "  VALUES (:WDMANDANT, :WDSA,     :WDAUFKRS,:WDAUFLFD, :WDAUFPOS, :WDTYP,:WDUPOS,            '00000000', '   ',              '   ',           ' ',       '                    ', '          ', '          ', '          ', '          ', '  ', '    ', '        ', '  ', ' ', '000', 0, 0, 0, 0, '000', ' ', '  ', '000000', '000', 0, ' ', ' ', ' ', ' ', 0, '                    ', '  ', '00000000', '00', ' ', ' ', '0000000000000  ')";
            or1.Parameters.Add("WDMANDANT", OracleType.NVarChar).Value = dwData["WDMANDANT"].ToString();
            or1.Parameters.Add("WDSA", OracleType.NVarChar).Value = dwData["WDSA"].ToString();
            or1.Parameters.Add("WDAUFKRS", OracleType.NVarChar).Value = dwData["WDAUFKRS"].ToString();
            or1.Parameters.Add("WDAUFLFD", OracleType.NVarChar).Value = dwData["WDAUFLFD"].ToString();
            or1.Parameters.Add("WDAUFPOS", OracleType.NVarChar).Value = dwData["WDAUFPOS"].ToString();
            or1.Parameters.Add("WDTYP", OracleType.NVarChar).Value = dwData["WDTYP"].ToString();
            or1.Parameters.Add("WDUPOS", OracleType.NVarChar).Value = dwData["WDUPOS"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWGBST(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WGBST(WGMANDANT, WGSA, WGKUNDNR, WGWERK, WGABT, WGWAKZ, WGART, WGDESS, WGCOLORIT, WGFARBE, WGBESCHICH, WGVAR, WGZUSTAND, WGZENSUR, WGZENSURKZ, WGLO, WGMJJ, WGMM, WGAKTKZ, WGME01, WGME01KG, WGME10, WGME10KG, WGME11, WGME11KG, WGME12, WGME12KG, WGME13, WGME13KG, WGME14, WGME14KG, WGME15, WGME15KG, WGME19, WGME19KG, WGME20, WGME20KG, WGME21, WGME21KG, WGME31, WGME31KG, WGME32, WGME32KG, WGME33, WGME33KG, WGME34, WGME34KG, WGME35, WGME35KG, WGME36, WGME36KG, WGME37, WGME37KG, WGME40, WGME40KG, WGME41, WGME41KG, WGME42, WGME42KG, WGME43, WGME43KG, WGME46, WGME46KG, WGME47, WGME47KG, WGME48, WGME48KG, WGME49, WGME49KG, WGME50, WGME50KG, WGME51, WGME51KG, WGME52, WGME52KG, WGME53, WGME53KG, WGME55, WGME55KG, WGME73, WGME73KG, WGME76, WGME76KG, WGME79, WGME79KG, WGME80, WGME88, WGME89, WGME90, WGME90KG, WGME91, WGME91KG, WGMER04, WGMER05, WGRESV1, WGRESV2, WGRESV3, WGRESV4, WGRESV5, WGBSTA, WGBSTAKG, WGBSTAN, WGBSTANKG, WGMEZUTEI, WGMEZUTEIKG, WGMER02, WGMER02KG, WGBSTKEN, WGBSTKENKG, WGBSTKZU, WGBSTKZUKG, WGBSTKMA, WGBSTKMAKG, WGBSTKME, WGBSTKMEKG, WGBSTMA, WGBSTMAKG, WGBSTME, WGBSTMEKG, WGBSTVMA, WGBSTVMAKG, WGBSTVME, WGBSTVMEKG, WGMEIV, WGMEIVKG, WGINDAT, WGINBST, WGINBSTKG, WGINALT, WGINALTKG, WGEKPRMA, WGEKPRME, WGEKPRZU, WGVRPR, WGDLABST, WGDLABSTKG, WGDLATAG, WGMINBST, WGMINBSTKG, WGMAXBST, WGMAXBSTKG, WGFERTKZ, WGBRT, WGGRQM, WGGRLFD, WGUEBER, WGAENDZL, WGAENB, WGAEND, WGNEUB, WGNEUD,WGFILLER)"
                + " VALUES (:WGMANDANT, :WGSA, :WGKUNDNR, :WGWERK, :WGABT,:WGWAKZ, :WGART,:WGDESS, :WGCOLORIT, :WGFARBE,:WGBESCHICH, :WGVAR"
                    + ", :WGZUSTAND,:WGZENSUR, :WGZENSURKZ, :WGMJJ,:WGMJJ, :WGMM, 'A', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2300, 605, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2300, 605, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 460, 121, '07', 0, 0, 2300, 605, 'F', 14200, 185, 263, 'N', 0, '        ', 0, 'ZMF     ', 20120907, '                                                        ')";
            or1.Parameters.Add("WGMANDANT", OracleType.NVarChar).Value = dwData["WGMANDANT"].ToString();
            or1.Parameters.Add("WGSA", OracleType.NVarChar).Value = dwData["WGSA"].ToString();
            or1.Parameters.Add("WGKUNDNR", OracleType.NVarChar).Value = dwData["WGKUNDNR"].ToString();
            or1.Parameters.Add("WGWERK", OracleType.NVarChar).Value = dwData["WGWERK"].ToString();
            or1.Parameters.Add("WGABT", OracleType.NVarChar).Value = dwData["WGABT"].ToString();
            or1.Parameters.Add("WGWAKZ", OracleType.NVarChar).Value = dwData["WGWAKZ"].ToString();
            or1.Parameters.Add("WGART", OracleType.NVarChar).Value = dwData["WGART"].ToString();
            or1.Parameters.Add("WGDESS", OracleType.NVarChar).Value = dwData["WGDESS"].ToString();
            or1.Parameters.Add("WGCOLORIT", OracleType.NVarChar).Value = dwData["WGCOLORIT"].ToString();
            or1.Parameters.Add("WGFARBE", OracleType.NVarChar).Value = dwData["WGFARBE"].ToString();
            or1.Parameters.Add("WGBESCHICH", OracleType.NVarChar).Value = dwData["WGBESCHICH"].ToString();
            or1.Parameters.Add("WGVAR", OracleType.NVarChar).Value = dwData["WGVAR"].ToString();
            or1.Parameters.Add("WGZUSTAND", OracleType.NVarChar).Value = dwData["WGZUSTAND"].ToString();
            or1.Parameters.Add("WGZENSUR", OracleType.NVarChar).Value = dwData["WGZENSUR"].ToString();
            or1.Parameters.Add("WGZENSURKZ", OracleType.NVarChar).Value = dwData["WGZENSURKZ"].ToString();
            or1.Parameters.Add("WGLO", OracleType.NVarChar).Value = dwData["WGLO"].ToString();
            or1.Parameters.Add("WGMJJ", OracleType.NVarChar).Value = dwData["WGMJJ"].ToString();
            or1.Parameters.Add("WGMM", OracleType.NVarChar).Value = dwData["WGMM"].ToString();
            // WGMANDANT, WGSA, WGKUNDNR, WGWERK, WGABT, WGWAKZ, WGART, WGDESS, WGCOLORIT, WGFARBE, WGBESCHICH, WGVAR
            //, WGZUSTAND, WGZENSUR, WGZENSURKZ, WGLO, WGMJJ, WGMM
            Connect2Proxy(or1);
        }



        public void InsertWBBST(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WBBST(WBBMANDANT, WBBRWKRS, WBBRWLFD, WBBPOS, WBBWERK, WBBABT, WBBKUNDNR, WBBSTKNR, WBBWAKZ, "
            + "WBBART, WBBDESS, WBBCOLORIT, WBBFARBE, WBBBESCHICH, WBBVAR, WBBKOLL, WBBVKART, WBBVKFARBE, WBBARTABW, WBBARTKUNDNR, WBBENTWKZ"
            + ", WBBSSTKLG, WBBSGEW, WBBSBRT, WBBISTKLG, WBBIGEW, WBBIBRT, WBBBRGEW, WBBDM, WBBVOL, WBBIGEWKZ, WBBIANZ, WBBMABRT1, WBBMASTKLG1, "
            + "WBBMABRT2, WBBMASTKLG2, WBBMABRT3, WBBMASTKLG3, WBBMABRT4, WBBMASTKLG4, WBBMABRT5, WBBMASTKLG5, WBBINDAT, WBBINBSTMTR, "
            + "WBBINBSTKG, WBBIPREIS, WBBWARSCH, WBBWDATUM, WBBWSCHICHT, WBBWMNRKRS, WBBWMLFDNR, WBBWMPOS, WBBRE, WBBRENETTO, WBBREVGUET, "
            + "WBBRS, WBBRSNETTO, WBBRSVGUET, WBBVE, WBBVENETTO, WBBVEVGUET, WBBVS, WBBVSNETTO, WBBVSVGUET, WBBANZTEILE, WBBVERSION, WBBTAX, "
            + "WBBZENSUR, WBBZENSURKZ, WBBUBRT, WBBZAFOLGE, WBBNAFOLGE, WBBZLNR, WBBAUFMSL, WBBZUSAM, WBBMAART, WBBPACKTYP, WBBROLLR,"
            + "WBBAUFMPOS, WBBKONFKZ, WBBKETTELN, WBBSHSTK1, WBBSHBRT1, WBBSHSTKLG1, WBBSHSTK2, WBBSHBRT2, WBBSHSTKLG2, WBBSHSTK3,"
            + "WBBSHBRT3, WBBSHSTKLG3, WBBSHSTK4, WBBSHBRT4, WBBSHSTKLG4, WBBSHSTK5, WBBSHBRT5, WBBSHSTKLG5, WBBSTKNRK, WBBLO, "
            + "WBBLB, WBBKZ, WBBLP, WBBAUFBKZ, WBBGEBNR, WBBGEBPOS, WBBSPSTA, WBBSPGRD, WBBERLKZ, WBBAUFTYP, WBBAUFKRS, WBBAUFLFD, "
            + "WBBAUFPOS, WBBTP, WBBFOLGE, WBBAFOLGEVON, WBBRAFOLGE, WBBMAFOLGE, WBBRSTKLG, WBBRGEW, WBBLGAE, WBBGEWAE, WBBPOOL,"
            + " WBBAUTZU, WBBWDUPOS, WBBRBENID, WBBRDATB, WBBRDAT, WBBRBEM, WBBRKUNDNR, WBBDPART, WBBDPART2, WBBZUSTAND, WBBFARBN, WBBSPKZ,"
            + " WBBCUKZ, WBBDISPOART, WBBDISPOVAR, WBBAUSFFRB, WBBAUSFGRI, WBBAUSFQUAL, WBBQUALST, WBBQPKT, WBBQPKTH, WBBQPKTL, WBBQPKTLH, "
            + "WBBVB, WBBVG, WBBVLVB, WBBVLVG, WBBVLSACHB, WBBVLGEGEN, WBBPRKUNDNR, WBBGENNR, WBBELOA, WBBELOB, WBBURAUFKRS, WBBURAUFLFD, "
            + "WBBURAUFPOS, WBBVKNPOS, WBBURLAND, WBBVERZKZ, WBBTSTKLG, WBBTANZ, WBBURPOS, WBBTEILPOS, WBBECKZ, WBBTLGAFOLGE, WBBZMT,"
            + " WBBANZSNT, WBBTLBRT, WBBTLSTKLG, WBBTLRICHT, WBBDRKZ1, WBBDRKZ2, WBBEINDAT, WBBWSTKLG, WBBWBRT, WBBWBMNRKRS, WBBWBMLFDNR,"
            + " WBBWBMPOS, WBBSCHUSS, WBBWERKE, WBBLIEF, WBBBAHN, WBBBAHNMAX, WBBWLO, WBBWLB, WBBWLP, WBBWAUFBKZ, WBBKANTE, WBBSOLLKZ, "
            + "WBBMATAB, WBBWJJJJ, WBBWBNR, WBBFLZZUGDAT, WBBISTKLGFA, WBBISTKLGF, WBBFRTWSKZ, WBBLTPOS, WBBILGFBT, WBBILGRBT, WBBIBRTFV, WBBIBRTFB, "
            + "WBBFEUCHTE, WBBLIEFSCH, WBBKDPART, WBBSCHLICHTEKZ, WBBASWAKZ, WBBASART, WBBASVAR, WBBFARBEALT, WBBCOLALT, WBBDESSALT, "
            + "WBBBESALT, WBBZUSTANDA, WBBMASSKZ, WBBFJJJJ, WBBFBNR, WBBRETOURKZ, WBBREAUFKRS, WBBREAUFLFD, WBBREAUFPOS, WBBREAFOLGE, "
            + "WBBTPA, WBBKOMMNR, WBBALIEFSCH, WBBPACKNR, WBBPACKAUTO, WBBRUEKZ, WBBURLB, WBBURLP, WBBURAKZ, WBBVERSDAT, WBBVERSANDKZ, "
            + "WBBURLIEFSCH, WBBARECHNR, WBBFERTKZ, WBBEGKZ, WBBBEM, WBBTXSCHL, WBBHHK1, WBBHHK2, WBBHHK3, WBBHHK4, WBBHHK5, WBBHHK6, "
            + "WBBHHK7, WBBHHK8, WBBHHK9, WBBHHK10, WBBHHKG, WBBAHK1, WBBAHK2, WBBAHK3, WBBAHK4, WBBAHK5, WBBAHK6, WBBAHK7, WBBAHK8,"
            + " WBBAHK9, WBBAHK10, WBBAHKG, WBBABPZAB, WBBABDATAB, WBBNEUBEN, WBBNEUDAT, WBBAENDBEN, WBBAENDDAT, WBBAENDZL, WBBWS,"
            + " WBBWSNO, WBBFILLER)"
                    + " VALUES (:WBBMANDANT, :WBBRWKRS, :WBBRWLFD, :WBBPOS, '   ', '   ', '00000000', '            ', ' ', '                    ', '          ', '          ', '          ', '          ',"
                    + " '  ', '     ', '                        ', '          ', ' ', '        ', ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '        ', 0, '0', '  ', '0000', '00', 0, 0, 0, 0, 0, 0, "
                    + "0, 0, 0, 0, 0, 0, '0', '1', '   ', '1', 'A', 0, '000', '000', '               ', '  ', '  ', ' ', '    ', 'I', '0000', ' ', ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '            ', '  ', '  ', ' ', '        ', 'J', '        ', '000', '  ', '  ', 'J', ' ', '  ', '      ', '   ', '0000', '00', '000', '000', '000', 0, 0, 0, 0, ' ', ' ', '02', '        ', 0, 0, '               ', '        ', '           ', '           ', '    ', '  ', ' ', ' ', '                    ', '  ', 100, 100, 100, ' ', 0, 0, 0, 0, '   ', '   ', '   ', '   ', '        ', ' ', '        ', '            ', '  ', '  ', '  ', '000000', '000', 0, '   ', ' ', 0, '00', '0001', '0000', ' ', '000', 9, 0, 0, 0, ' ', ' ', ' ', 0, 0, 0, '  ', '0000', '00', 0, ' ', '0000', 0, 0, '  ', '  ', '        ', ' ', '  ', ' ', ' ', 0, 0, 0, 0, 0, ' ', 11, 0, 0, 0, 0, 0, '          ', '          ', 'J', ' ', '                    ', '  ', '          ', '          ', '          ', '          ', '    ', ' ', 0, 0, '  ', '  ', '000000', '000', '000', '0000', '000000', '00000000', '0000', ' ', ' ', '  ', '        ', ' ', 0, 'J', '00000000', '00000000', 'Z', ' ', '               ', '  ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '        ', 0, '        ', 0, 4, '    ', 0, '                                                                                                           ')";
            or1.Parameters.Add("WBBMANDANT", OracleType.NVarChar).Value = dwData["WBBMANDANT"].ToString();
            or1.Parameters.Add("WBBRWKRS", OracleType.NVarChar).Value = dwData["WBBRWKRS"].ToString();
            or1.Parameters.Add("WBBRWLFD", OracleType.NVarChar).Value = dwData["WBBRWLFD"].ToString();
            or1.Parameters.Add("WBBPOS", OracleType.NVarChar).Value = dwData["WBBPOS"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWBBEW(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WBBEW(WBEWMANDANT, WBEWJJJJ, WBEWBELEG, WBEWLFDNR, WBEWKUNDNR, WBEWWERK, WBEWABT, WBEWWAKZ, WBEWART, WBEWVAR, WBEWDESS, WBEWCOLORIT, WBEWFARBE, WBEWBESCHICH, WBEWZUSTAND, WBEWZENSUR, WBEWZENSURKZ, WBEWTAX, WBEWAUFMSL, WBEWPACKTYP, WBEWLO, WBEWLB, WBEWLP, WBEWAUFBKZ, WBEWRWKRS, WBEWRWLFD, WBEWPOS, WBEWSTKNR, WBEWTSTKNR, WBEWGEBNR, WBEWGEBPOS, WBEWDPART, WBEWLAGE, WBEWBAHN, WBEWFSCHL, WBEWPACKNR, WBEWAUFTYP, WBEWAUFKRS, WBEWAUFLFD, WBEWAUFPOS, WBEWAFOLGE, WBEWTP, WBEWAPOS, WBEWWDUPOS, WBEWMNRKRS, WBEWMLFDNR, WBEWMPOS, WBEWSCHICHT, WBEWKSTKRS, WBEWKST, WBEWKOSTART, WBEWBS, WBEWWERT, WBEWWERTDAT, WBEWWEKORR, WBEWMTR, WBEWGEW, WBEWBRT, WBEWBUCHDAT, WBEWBUCHUHR, WBEWBUCHBEN, WBEWFC, WBEWKONDAT, WBEWMATABR, WBEWSTORKZ, WBEWINVBLG, WBEWRENRG, WBEWSTGRD, WBEWACTION, WBEWSAPKZ, WBEWFILLER)"
                                            + "VALUES (:WBEWMANDANT, 0, :WBEWBELEG, :WBEWLFDNR, '00000000', '   ', '   ', ' ', '                    ', '  ', '          ', '          ', '          ', '          ', '    ', '1', 'A', '   ', '  ', '    ', '  ', '  ', '        ', 'J', '  ', '      ', '    ', '            ', '            ', '        ', '000', '           ', 0, 0, '   ', '0000', ' ', '  ', '      ', '   ', '000', '0000', '0000', '00', '  ', '0000', '00', '0', '  ', '0000', '      ', '  ', 0, 0, '  ', 0, 0, 0, 0, 0, '        ', '        ', 0, 'J', ' ', 0, '           ', '  ', '  ', ' ', :WBEWFILLER)";
            or1.Parameters.Add("WBEWMANDANT", OracleType.NVarChar).Value = dwData["WBEWMANDANT"].ToString();
            or1.Parameters.Add("WBEWBELEG", OracleType.NVarChar).Value = dwData["WBEWBELEG"].ToString();
            or1.Parameters.Add("WBEWLFDNR", OracleType.NVarChar).Value = dwData["WBEWLFDNR"].ToString();
            or1.Parameters.Add("WBEWFILLER", OracleType.NVarChar).Value = dwData["WBEWFILLER"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWBDAT(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WBDAT(WBMANDANT, WBRWKRS, WBRWLFD, WBLESTKNR, WBKUNDNR, WBWERK, WBABT, WBWAKZ, WBART, WBVAR, WBDESS, WBCOLORIT, WBFARBE, WBBESCHICH, WBZUSTAND, WBLIEFSCHNR, WBLIEFDAT, WBWEBER, WBABS, WBEINDAT, WBEINLO, WBKDPART, WBSPSTA, WBSPGRD, WBSTK, WBMTR, WBGEBANZ, WBKGBRUT, WBKGNET, WBKGTARA, WBMEWE, WBSTKK, WBMTRK, WBGEBANZK, WBKGNETK, WBRWAUFMSL, WBGEBART, WBBRT, WBGRQM, WBGRLFD, WBFDDIK, WBFDDIS, WBPRUEF, WBSCHLIGR1, WBSCHLIGR2, WBSCHLIGR3, WBSCHLIGR4, WBSCHLIGR5, WBSCHLINR1, WBSCHLINR2, WBSCHLINR3, WBSCHLINR4, WBSCHLINR5, WBFILLER1, WBSCHLIKZ, WBMATERIAL, WBKRITISCH, WBKDSTK, WBVERSRUE, WBKANTE, WBENTKZ, WBBESTKZ, WBBESTKRS, WBBESTLFD, WBBESTPOS, WBKOKRS, WBKOLFD, WBNETMTR, WBFERTKZ, WBREDAT, WBRENR, WBREWERT, WBSTAPO, WBPLPREIS, WBEINVKZ, WBMATPRF, WBSPEDF, WBSPEDV, WBSPEDZ, WBURRENR, WBURLAND, WBBUSIMODE, WBDRVERT, WBCBOOKNO, WBCITEMNO, WBZOLLST, WBFILLER2, WBAENDZL, WBAENDBEN, WBAENDDAT, WBNEUBEN, WBNEUDAT)"
                                        + " VALUES (:WBMANDANT, :WBRWKRS, :WBRWLFD, '1111', '00000000', '   ', '   ', 'F', 'PV912102            ', '12', '          ', '          ', 'RD01      ', 'F01       ', '    ', 'DL2840    ', 20100917, '        ', '                              ', 20100917, '01', 'LT2840A   ', '  ', '  ', 10, 120000, 1, 0, 47400, 0, '   ', 10, 120000, 0, 47400, '  ', 'TC  ', 15800, 250, 395, 0, 0, 'SUNLV   ', ' ', ' ', ' ', ' ', ' ', '   ', '   ', '   ', '   ', '   ', ' ', 'J', 'J', ' ', 'N', ' ', '  ', ' ', ' ', '  ', '      ', '   ', '  ', '      ', 120000, 'Z', 0, '          ', 0, '  ', 0, 'E', ' ', ' ', ' ', ' ', '          ', 'CN ', '   ', '                    ', '               ', 0, '      ', '                                              ', 12, 'SUNLV   ', 20100917, 'SUNLV   ', 20100917)";
            or1.Parameters.Add("WBMANDANT", OracleType.NVarChar).Value = dwData["WBMANDANT"].ToString();
            or1.Parameters.Add("WBRWKRS", OracleType.NVarChar).Value = dwData["WBRWKRS"].ToString();
            or1.Parameters.Add("WBRWLFD", OracleType.NVarChar).Value = dwData["WBRWLFD"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWTPASS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WTPASS(WTPMANDANT, WTPPASSNR, WTPSTAKZ, WTPBEZ, WTPEZ, WTPERSFD, WTPPSCHT, WTPLSCHTW, WTPLSCHTK, WTPGSCHT, WTPANZK, WTPRAPP, WTPGLITY, WTPGLATY, WTPGLARH, WTPGLAANZ, WTPPLITY, WTPPLATY, WTPPLARH, WTPPLAANZ, WTPAENDZL, WTPAENDBEN, WTPAENDDAT, WTPNEUBEN, WTPNEUDAT, WTPFILLER)"
                + "VALUES (:WTPMANDANT, :WTPPASSNR, 'A',:WTPBEZ, ' ', 0, 0, 0, 0, 0, 0, 0, '   ', '   ', 0, 0, '   ', '   ', 0, 0 , 0, '        ', 0, :WTPNEUBEN, :WTPNEUDAT, '                             ')";
            or1.Parameters.Add("WTPMANDANT", OracleType.NVarChar).Value = dwData["WTPMANDANT"].ToString();
            or1.Parameters.Add("WTPPASSNR", OracleType.NVarChar).Value = dwData["WTPPASSNR"].ToString();
            or1.Parameters.Add("WTPBEZ", OracleType.NVarChar).Value = dwData["WTPBEZ"].ToString();
            or1.Parameters.Add("WTPNEUBEN", OracleType.NVarChar).Value = dwData["WTPNEUBEN"].ToString();
            or1.Parameters.Add("WTPNEUDAT", OracleType.NVarChar).Value = dwData["WTPNEUDAT"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWTEINZ(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WTEINZ(WTEMANDANT, WTEEINZNR, WTESTAKZ, WTEBEZ, WTEEZ, WTEERSFD, WTERAPP, WTEEZWBL, WTEESTBRT, WTEWBLBRT, WTEWBLTL, WTELSL01, WTEGEW01, WTELSR01, WTELEER01, WTELSL02, WTEGEW02, WTELSR02, WTELEER02, WTELSL03, WTEGEW03, WTELSR03, WTELEER03, WTELSL04, WTEGEW04, WTELSR04, WTELEER04, WTELSL05, WTEGEW05, WTELSR05, WTELEER05, WTEAENDZL, WTEAENDBEN, WTEAENDDAT, WTENEUBEN, WTENEUDAT, WTEFILLER)"
                + " VALUES ("
            + " :WTEMANDANT,:WTEEINZNR, 'A', '                              ', 'G', 0, 1, '2                                       ', '                                        ', 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, '        ', 0, :WTENEUBEN, :WTENEUDAT, '                                          ')";
            or1.Parameters.Add("WTEMANDANT", OracleType.NVarChar).Value = dwData["WTEMANDANT"].ToString();
            or1.Parameters.Add("WTEEINZNR", OracleType.NVarChar).Value = dwData["WTEEINZNR"].ToString();
            or1.Parameters.Add("WTENEUBEN", OracleType.NVarChar).Value = dwData["WTENEUBEN"].ToString();
            or1.Parameters.Add("WTENEUDAT", OracleType.NVarChar).Value = dwData["WTENEUDAT"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWTSAER(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = " INSERT INTO WTSAER SELECT :WTBMANDANT, :WTBSRFNR, '00', ' ', '                    ', 'N', 'AR', '             ', '      ', 0, 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, '      ', 0, 1, 11, 0, 0, 0, 0, 2, 12, 0, 0, 0, 0, 3, 13, 0, 0, 0, 0, 4, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,"
            + ":WTBAENDBEN, :WTBAENDDAT, :WTBNEUBEN, :WTBNEUDAT, '                                                                  ' FROM DUAL";
            or1.Parameters.Add("WTBMANDANT", OracleType.NVarChar).Value = dwData["WTBMANDANT"].ToString();
            or1.Parameters.Add("WTBSRFNR", OracleType.NVarChar).Value = dwData["WTBSRFNR"].ToString();
            or1.Parameters.Add("WTBAENDBEN", OracleType.NVarChar).Value = dwData["WTBAENDBEN"].ToString();
            or1.Parameters.Add("WTBAENDDAT", OracleType.NVarChar).Value = dwData["WTBAENDDAT"].ToString();
            or1.Parameters.Add("WTBNEUBEN", OracleType.NVarChar).Value = dwData["WTBNEUBEN"].ToString();
            or1.Parameters.Add("WTBNEUDAT", OracleType.NVarChar).Value = dwData["WTBNEUDAT"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertWTGEW(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            or1.CommandText = "INSERT INTO WTGEW(WTGMANDANT, WTGKUNDNR, WTGWERK, WTGABT, WTGART, WTGVAR, WTGAENZL, WTGAENB, WTGAEND, WTGNEUB, WTGNEUD, WTGWBBRT, WTGWBF, WTGFDISM, WTGFDLGS, WTGFDLFS, WTGSFLG, WTGKCOL, WTGSMTRS, WTGREAPPI, WTGRNAME, WTGCHORE, WTGRDENS, WTGRDENSTM, WTGRDENSTP, WTGKARTEN, WTGPLATINEN, WTGNOPPEN, WTGANZRAPP, WTGRWRAPH, WTGRWRAPB, WTGRWRAPHFD, WTGRWRAPBFD, WTGPANELS, WTGSHEDS, WTGNFLRH, WTGNFLRA, WTGNFTOLM, WTGNFTOLP, WTGMFLRH, WTGMFLRA, WTGMFTOLM, WTGMFTOLP, WTGHFLRH, WTGHFLRA, WTGHFTOLM, WTGHFTOLP, WTGFILLER)"
                + "VALUES (:WTGMANDANT, '00000000', '   ', '   ', :WTGART, :WTGVAR, 1, '        ', 0, '        ', 0, 0, 0, 0, 0, 0, 'A              ', '0', 0, '               ', '               ', '0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '000', '0', 0, '   ', 0, 0, 0, '   ', 0, 0, 0, '   ', 0, 0, '                                                  ')";
            or1.Parameters.Add("WTGMANDANT", OracleType.NVarChar).Value = dwData["WTGMANDANT"].ToString();
            or1.Parameters.Add("WTGART", OracleType.NVarChar).Value = dwData["WTGART"].ToString();
            or1.Parameters.Add("WTGVAR", OracleType.NVarChar).Value = dwData["WTGVAR"].ToString();
            Connect2Proxy(or1);
        }
        #endregion

        #region======V==============
        public void InsertVKKOPF(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            or1 = OracleDB.CreateCommand();
            DataSet result = new DataSet();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = "INSERT INTO VKKOPF(VKKMANDANT, VKKSA, VKKAUFKRS, VKKAUFLFD, VKKAENDST, VKKAENDZL, VKKAENDBEN, VKKAENDDAT, VKKNEUBEN, VKKNEUDAT, VKKAESTAT, VKKAUFART, VKKKUNDNR, VKKVB, VKKVG, VKKADRSL, VKKVERBNR, VKKZENTR, VKKZENTRR, VKKKREDKDNR, VKKKDARTBEZ, VKKORDER, VKKANSPRECH, VKKANSPZUS, VKKBESTNR, VKKBESTDAT, VKKGLTVON, VKKGLTBIS, VKKETAB, VKKBESTSB, VKKAEDAT, VKKSACHBE, VKKPRGRP, VKKPRGRPV, VKKPRGRPZ, VKKPRGRPSTD, VKKPROJNR, VKKVKART, VKKKUNDNRST, VKKABNGRPST, VKKGLOBAL, VKKKOMENGE, VKKEINGET, VKKOFFEN, VKKEINGETOV, VKKEINGETPO, VKKCORQTY, VKKLIMGWO, VKKMEEH, VKKMEEHGRP, VKKMEEHFKT, VKKKOMENGET1, VKKKOMENGET2, VKKKOMENGET3, VKKKOMENGET4, VKKEINTT1, VKKEINTT2, VKKEINTT3, VKKEINTT4, VKKOFFENT1, VKKOFFENT2, VKKOFFENT3, VKKOFFENT4, VKKEINTTOV1, VKKEINTTOV2, VKKEINTTOV3, VKKEINTTOV4, VKKEINTTPO1, VKKEINTTPO2, VKKEINTTPO3, VKKEINTTPO4, VKKCORQTYT1, VKKCORQTYT2, VKKCORQTYT3, VKKCORQTYT4, VKKLIMGWOT1, VKKLIMGWOT2, VKKLIMGWOT3, VKKLIMGWOT4, VKKRSTBEZ, VKKOPTION, VKKOPTANBIS, VKKOPTANAM, VKKDECKPROZ, VKKWDECKDAT, VKKUEBEINT, VKKMINBEST, VKKMAXBEST, VKKSCHRAST, VKKGESMENGE1, VKKGESMENGE2, VKKGESMENGE3, VKKGESMENGE4, VKKGESWERT, VKKCOVPRC, VKKAKKREDNR, VKKGESSTA, VKKKDSTA, VKKAUFSTA, VKKPOSSTA, VKKSTA4, VKKKURS, VKKBETRAG, VKKVKURS, VKKVBETRAG, VKKSCHWPLU, VKKSCHWMIN, VKKHWAEHRSL, VKKHEUROKURS, VKKHEUROKURSVK, VKKFEUROKURS, VKKFEUROKURSVK, VKKALTWAEHR, VKKALTWAEHRF, VKKVALUTA, VKKVALDAT, VKKWAEHRSL, VKKZAHLBED, VKKEKON, VKKKDVKL, VKKLIEFBED, VKKLANDU, VKKPLZU, VKKORTU, VKKBZU, VKKBZBEZU, VKKCOUNTYU, VKKCITYU, VKKLIEFKOMP, VKKVERSART, VKKSPED, VKKZUSATZ, VKKDRBEST, VKKBSTDAT, VKKANGETEXT, VKKANGEWIE, VKKBESTTEXT, VKKBESTWIE, VKKLIEFTEXT, VKKLIEFWIE, VKKRECHTEXT, VKKRECHWIE, VKKLVORTEXT, VKKLVORWIE, VKKIVVTTEXT, VKKIVVTWIE, VKKIVDITEXT, VKKIVDIWIE, VKKAGT, VKKANGEALLG, VKKBESTALLG, VKKLIEFALLG, VKKRECHALLG, VKKLVORALLG, VKKIVVTALLG, VKKIVDIALLG, VKKANL1TXT, VKKANL2TXT, VKKANL3TXT, VKKDBLATT, VKKTBRIEF, VKKARTBILD, VKKFORMAT, VKKZEUGNIS, VKKRES1, VKKRES2, VKKVKZUABVH, VKKVKZUADR, VKKKZPRNEU, VKKKZFRNEU, VKKVAEAKZ, VKKMUKRS, VKKMULFD, VKKMUPOS, VKKCPKRS, VKKCPLFD, VKKCPPOS, VKKEDIKZ, VKKKOMMNR, VKKEDIDAT, VKKEDIZEIT, VKKABSAUFART, VKKARCHKZ, VKKARCHDAT, VKKARCHBEL, VKKOPITEM, VKKABSCHR, VKKSFEUCHTE, VKKAFEUCHTE, VKKFEUKZ, VKKABRKZ, VKKVTYP, VKKEXMANDANT, VKKWEGBINICH, VKKOFFNEU, VKKINDEXNA1, VKKINDEXBA1, VKKINDEXHS1, VKKINDEXNA2, VKKINDEXBA2, VKKINDEXHS2, VKKINDEXNA3, VKKINDEXBA3, VKKINDEXHS3, VKKHUELBE, VKKRATIFI, VKKMU1ANZ, VKKMU1GR, VKKMU1ME, VKKMU1PROMG, VKKMU2ANZ, VKKMU2GR, VKKMU2ME, VKKMU2PROMG, VKKFILLER)"
                        + " VALUES (:VKKMANDANT, '  ', :VKKAUFKRS, :VKKAUFLFD, '000', '012', 'SUNLV   ', 20130219, 'SUNLV   ', 20130104, 'S', 'NA', '00000200', 'RMB', '   ', '        ', '        ', '        ', ' ', '00000200', 'K', 'MAIL', '        ', '                          ', '               ', 20130219, 0, 0, 0, '              ', 20100224, 'BDE     ', 'SA      ', '        ', '        ', 'SA      ', '00000', '   ', '        ', '   ', ' ', 0, 0, 0, 0, 0, 0, 0, '   ', ' ', '000000000000', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '      ', ' ', 0, 0, 1000, ' ', 0, 0, 0, ' ', 6, 303, 486, 84, 3896, 0, '                    ', '  ', '10', '20', '30', '40', '0010000', '0001', '0000000', '0000', 0, 0, 'RMB', 0, ' ', 0, ' ', '   ', 0, '000', 0, 'RMB', '30V', '        ', '   ', 'EXW', 'CN ', '42116       ', 'ZHANGJIAGANG                            ', '1 ', 'JIANGSU      ', '    ', '    ', 'N', 'LDY', 'HWD', '                                                            ', 'J', 0, ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', '        ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'N', 'N', 'J', '  ', '000000', '000', '  ', '000000', '000', ' ', '                    ', 0, 0, '  ', ' ', '00000000', '00000000', 'C0100227  ', '0000', '0000', '0000', ' ', ' ', ' ', '  ', ' ', '00000000', '      ', 0, 0, '      ', 0, 0, '      ', 0, 0, ' ', ' ', 0, 0, ' ', 0, 0, 0, ' ', 0, '                                                              ')";
                    break;
                case "50.25":
                    or1.CommandText = "INSERT INTO VKKOPF(VKKMANDANT, VKKSA, VKKAUFKRS, VKKAUFLFD, VKKAENDST, VKKAENDZL, VKKAENDBEN, VKKAENDDAT, VKKNEUBEN, VKKNEUDAT, VKKAESTAT, VKKAUFART, VKKKUNDNR, VKKVB, VKKVG, VKKADRSL, VKKVERBNR, VKKZENTR, VKKZENTRR, VKKKREDKDNR, VKKKDARTBEZ, VKKORDER, VKKANSPRECH, VKKANSPZUS, VKKBESTNR, VKKBESTDAT, VKKGLTVON, VKKGLTBIS, VKKETAB, VKKBESTSB, VKKAEDAT, VKKSACHBE, VKKPRGRP, VKKPRGRPV, VKKPRGRPZ, VKKPRGRPSTD, VKKPROJNR, VKKVKART, VKKKUNDNRST, VKKABNGRPST, VKKGLOBAL, VKKKOMENGE, VKKEINGET, VKKOFFEN, VKKEINGETOV, VKKEINGETPO, VKKCORQTY, VKKLIMGWO, VKKMEEH, VKKMEEHGRP, VKKMEEHFKT, VKKKOMENGET1, VKKKOMENGET2, VKKKOMENGET3, VKKKOMENGET4, VKKEINTT1, VKKEINTT2, VKKEINTT3, VKKEINTT4, VKKOFFENT1, VKKOFFENT2, VKKOFFENT3, VKKOFFENT4, VKKEINTTOV1, VKKEINTTOV2, VKKEINTTOV3, VKKEINTTOV4, VKKEINTTPO1, VKKEINTTPO2, VKKEINTTPO3, VKKEINTTPO4, VKKCORQTYT1, VKKCORQTYT2, VKKCORQTYT3, VKKCORQTYT4, VKKLIMGWOT1, VKKLIMGWOT2, VKKLIMGWOT3, VKKLIMGWOT4, VKKRSTBEZ, VKKOPTION, VKKOPTANBIS, VKKOPTANAM, VKKDECKPROZ, VKKWDECKDAT, VKKUEBEINT, VKKMINBEST, VKKMAXBEST, VKKSCHRAST, VKKGESMENGE1, VKKGESMENGE2, VKKGESMENGE3, VKKGESMENGE4, VKKGESWERT, VKKCOVPRC, VKKAKKREDNR, VKKGESSTA, VKKKDSTA, VKKAUFSTA, VKKPOSSTA, VKKSTA4, VKKKURS, VKKBETRAG, VKKVKURS, VKKVBETRAG, VKKSCHWPLU, VKKSCHWMIN, VKKHWAEHRSL, VKKHEUROKURS, VKKHEUROKURSVK, VKKFEUROKURS, VKKFEUROKURSVK, VKKALTWAEHR, VKKALTWAEHRF, VKKVALUTA, VKKVALDAT, VKKWAEHRSL, VKKZAHLBED, VKKEKON, VKKKDVKL, VKKLIEFBED, VKKLANDU, VKKPLZU, VKKORTU, VKKBZU, VKKBZBEZU, VKKCOUNTYU, VKKCITYU, VKKLIEFKOMP, VKKVERSART, VKKSPED, VKKZUSATZ, VKKDRBEST, VKKBSTDAT, VKKANGETEXT, VKKANGEWIE, VKKBESTTEXT, VKKBESTWIE, VKKLIEFTEXT, VKKLIEFWIE, VKKRECHTEXT, VKKRECHWIE, VKKLVORTEXT, VKKLVORWIE, VKKIVVTTEXT, VKKIVVTWIE, VKKIVDITEXT, VKKIVDIWIE, VKKAGT, VKKANGEALLG, VKKBESTALLG, VKKLIEFALLG, VKKRECHALLG, VKKLVORALLG, VKKIVVTALLG, VKKIVDIALLG, VKKANL1TXT, VKKANL2TXT, VKKANL3TXT, VKKDBLATT, VKKTBRIEF, VKKARTBILD, VKKFORMAT, VKKZEUGNIS, VKKRES1, VKKRES2, VKKVKZUABVH, VKKVKZUADR, VKKKZPRNEU, VKKKZFRNEU, VKKVAEAKZ, VKKMUKRS, VKKMULFD, VKKMUPOS, VKKCPKRS, VKKCPLFD, VKKCPPOS, VKKEDIKZ, VKKKOMMNR, VKKEDIDAT, VKKEDIZEIT, VKKABSAUFART, VKKARCHKZ, VKKARCHDAT, VKKARCHBEL, VKKOPITEM, VKKABSCHR, VKKSFEUCHTE, VKKAFEUCHTE, VKKFEUKZ, VKKABRKZ, VKKVTYP, VKKEXMANDANT, VKKWEGBINICH, VKKOFFNEU, VKKINDEXNA1, VKKINDEXBA1, VKKINDEXHS1, VKKINDEXNA2, VKKINDEXBA2, VKKINDEXHS2, VKKINDEXNA3, VKKINDEXBA3, VKKINDEXHS3, VKKHUELBE, VKKRATIFI, VKKMU1ANZ, VKKMU1GR, VKKMU1ME, VKKMU1PROMG, VKKMU2ANZ, VKKMU2GR, VKKMU2ME, VKKMU2PROMG, VKKSPARTE, VKKEINSATZG, VKKVERWEND, VKKERL, VKKFILLER)"
                        + " VALUES (:VKKMANDANT, '  ', :VKKAUFKRS, :VKKAUFLFD, '000', '012', 'SUNLV   ', 20130219, 'SUNLV   ', 20130104, 'S', 'NA', '00000200', 'RMB', '   ', '        ', '        ', '        ', ' ', '00000200', 'K', 'MAIL', '        ', '                          ', '               ', 20130219, 0, 0, 0, '              ', 20100224, 'BDE     ', 'SA      ', '        ', '        ', 'SA      ', '00000', '   ', '        ', '   ', ' ', 0, 0, 0, 0, 0, 0, 0, '   ', ' ', '000000000000', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '      ', ' ', 0, 0, 1000, ' ', 0, 0, 0, ' ', 6, 303, 486, 84, 3896, 0, '                    ', '  ', '10', '20', '30', '40', '0010000', '0001', '0000000', '0000', 0, 0, 'RMB', 0, ' ', 0, ' ', '   ', 0, '000', 0, 'RMB', '30V', '        ', '   ', 'EXW', 'CN ', '42116       ', 'ZHANGJIAGANG                            ', '1 ', 'JIANGSU      ', '    ', '    ', 'N', 'LDY', 'HWD', '                                                            ', 'J', 0, ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', '        ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'N', 'N', 'J', '  ', '000000', '000', '  ', '000000', '000', ' ', '                    ', 0, 0, '  ', ' ', '00000000', '00000000', 'C0100227  ', '0000', '0000', '0000', ' ', ' ', ' ', '  ', ' ', '00000000', '      ', 0, 0, '      ', 0, 0, '      ', 0, 0, ' ', ' ', 0, 0, '   ', 0, 0, 0, '   ', 0, '  ', '    ', '    ', ' ', '                                               ')";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("VKKMANDANT", OracleType.NVarChar).Value = dwData["VKKMANDANT"].ToString();
            or1.Parameters.Add("VKKAUFKRS", OracleType.NVarChar).Value = dwData["VKKAUFKRS"].ToString();
            or1.Parameters.Add("VKKAUFLFD", OracleType.NVarChar).Value = dwData["VKKAUFLFD"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertVKPOS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            or1 = OracleDB.CreateCommand();
            DataSet result = new DataSet();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = "INSERT INTO VKPOS(VKPMANDANT, VKPSA, VKPAUFKRS, VKPAUFLFD, VKPAUFPOS, VKPAENDST, VKPAENDZL, VKPAENDBEN, VKPAENDDAT, VKPNEUBEN, VKPNEUDAT, VKPPAENDDAT, VKPPAENPROG, VKPAESTAT, VKPVB, VKPVG, VKPKUNDNR, VKPAUFART, VKPSACHBE, VKPPOSTYP, VKPABWERT, VKPMUSTER, VKPABVK, VKPEIL, VKPEZEIT, VKPERL, VKPPRODST, VKPARTST, VKPKOLL, VKPART, VKPFARBE, VKPGROE, VKPZENSUR, VKPAUFMART, VKPVERPART, VKPKURZBEZ, VKPKKOLL, VKPKDARTNR, VKPKDBEZ, VKPKDFARBNR, VKPPRGR, VKPARTGRP, VKPDSACHB, VKPZIELGR, VKPMENGE1, VKPMENGE2, VKPRESERV, VKPZUGET, VKPFREIGE, VKPGAUFBEST, VKPKOMMISS, VKPFAKT, VKPVERS, VKPEINGET, VKPOFFEN, VKPMEEH, VKPMEEHGRP, VKPMEEHFKT, VKPMENGE1T1, VKPMENGE1T2, VKPMENGE1T3, VKPMENGE1T4, VKPRESERVT1, VKPRESERVT2, VKPRESERVT3, VKPRESERVT4, VKPZUGETT1, VKPZUGETT2, VKPZUGETT3, VKPZUGETT4, VKPFREIGET1, VKPFREIGET2, VKPFREIGET3, VKPFREIGET4, VKPGAUFBESTT1, VKPGAUFBESTT2, VKPGAUFBESTT3, VKPGAUFBESTT4, VKPKOMMIST1, VKPKOMMIST2, VKPKOMMIST3, VKPKOMMIST4, VKPFAKTT1, VKPFAKTT2, VKPFAKTT3, VKPFAKTT4, VKPVERST1, VKPVERST2, VKPVERST3, VKPVERST4, VKPEINTT1, VKPEINTT2, VKPEINTT3, VKPEINTT4, VKPOFFENT1, VKPOFFENT2, VKPOFFENT3, VKPOFFENT4, VKPWVTERM, VKPWUTERM, VKPFREITERM, VKPVERSTERM, VKPLIEFTERM, VKPLIEFEING, VKPEINTTERM, VKPEINTEING, VKPVERZEING1, VKPVERZTERM1, VKPBESTTERM1, VKPVERZEING2, VKPVERZTERM2, VKPBESTTERM2, VKPVERZEING3, VKPVERZTERM3, VKPBESTTERM3, VKPVERZEING4, VKPVERZTERM4, VKPBESTTERM4, VKPVERZEING5, VKPVERZTERM5, VKPBESTTERM5, VKPLVDAT, VKPEINTVON, VKPVALUTA, VKPVALDAT, VKPLIEFZEIT, VKPLZEIT, VKPSTORDAT, VKPNACHL, VKPVERTKZ, VKPVKNPOS, VKPLTERMIN1, VKPLTART1, VKPMENGEP1, VKPLTERMIN2, VKPLTART2, VKPMENGEP2, VKPLTERMIN3, VKPLTART3, VKPMENGEP3, VKPLTERMIN4, VKPLTART4, VKPMENGEP4, VKPLTERMIN5, VKPLTART5, VKPMENGEP5, VKPSHOE, VKPSLAE, VKPOPTRLAE, VKPOPTART, VKPSPUL, VKPSPULG, VKPSPULGV, VKPSPULGB, VKPSPULM, VKPSPULMV, VKPSPULMB, VKPSPUL2, VKPSPULG2, VKPHUELSE, VKPKF, VKPFDRES, VKPWI, VKPSCHLICHTGR, VKPSCHLICHTNR, VKPHABR, VKPVABR, VKPSETKZ, VKPPRGRP, VKPLFDNR, VKPARTPRGR, VKPCOUPON, VKPPREIS, VKPPREH, VKPPREHGRP, VKPPREHFKT, VKPPRKZ, VKPPREISPRF, VKPUGSACHB, VKPPRLPREIS, VKPPREISUG, VKPKONFEKT, VKPPOSWERT, VKPSTAFFELF, VKPVGUET, VKPSONDERP, VKPINDEXNA1, VKPINDEXBA1, VKPINDEXWE1, VKPINDEXHS1, VKPINDEXNA2, VKPINDEXBA2, VKPINDEXWE2, VKPINDEXHS2, VKPINDEXNA3, VKPINDEXBA3, VKPINDEXWE3, VKPINDEXHS3, VKPKOAUFKRS, VKPKOAUFLFD, VKPKOAUFPOS, VKPKOAUFART, VKPARTPRF, VKPKZFREI, VKPFARBGRP, VKPARTUG, VKPFARBEUG, VKPARTOG, VKPFARBEOG, VKPIAEDAT, VKPEMENGEV, VKPEMENGEB, VKPPMENGE, VKPVERTEIL, VKPWDECK, VKPKANR, VKPKAPOS, VKPABLGRD, VKPGELISTET, VKPKONKURENT, VKPKPREIS, VKPHOCHRECH, VKPERFOLG, VKPANT, VKPANTSAV, VKPSIGNED, VKPABS, VKPABRKZ, VKPNOCOUNT, VKPEXAUFKRS, VKPEXAUFLFD, VKPEXAUFPOS, VKPEXART, VKPEXVAR, VKPEXDESS, VKPEXCOLORIT, VKPRAPLG, VKPRAPWDT, VKPGESSTA, VKPARTSTA, VKPPRSTA, VKPBSTSTA, VKPTERMSTA, VKPMGV, VKPMGB, VKPMGZU, VKPSTV, VKPSTB, VKPSTZU, VKPSTLGV, VKPSTLGB, VKPPAS, VKPPAI, VKPTSTS, VKPTSTI, VKPTSTLG, VKPTSTMAX, VKPUBLI, VKPAZUTEIL, VKPERSART, VKPZUTART, VKPZSBER, VKPFA, VKPGA, VKPQA, VKPMAART, VKPMAFZST, VKPZUSAM, VKPZUDOPA, VKPZUDPA, VKPGENEHM, VKPMUVERT, VKPZRUECK, VKPZKDAT, VKPZKBEN, VKPSTKNEUTR, VKPPARTGL, VKPKONFKZ, VKPKETTELN, VKPRESSACHB, VKPLAEVON, VKPLAEBIS, VKPSTDLAE, VKPSFERTKZ, VKPREGEL, VKPZUTPRIO, VKPSTAFFNR, VKPMAXPKT, VKPANZ1, VKPLAENGE1, VKPBREITE1, VKPANZ2, VKPLAENGE2, VKPBREITE2, VKPANZ3, VKPLAENGE3, VKPBREITE3, VKPANZ4, VKPLAENGE4, VKPBREITE4, VKPANZ5, VKPLAENGE5, VKPBREITE5, VKPFIXMASS, VKPURLAND, VKPPRFBEG, VKPPRFVKD, VKPEINWERK, VKPWERK, VKPQPKTH, VKPQPKTLH, VKPRICHGL, VKPWSCHTXT, VKPFILLER1, VKPABRUF, VKPLIEFKOMP, VKPVERSART, VKPZUSATZ, VKPKDKOMM, VKPLTEILNR, VKPVERSLO, VKPAUTOFREI, VKPSTRECKE, VKPANGETEXT, VKPANGEWIE, VKPBESTTEXT, VKPBESTWIE, VKPLIEFTEXT, VKPLIEFWIE, VKPRECHTEXT, VKPRECHWIE, VKPLVORTEXT, VKPLVORWIE, VKPIVVTTEXT, VKPIVVTWIE, VKPIVDITEXT, VKPIVDIWIE, VKPARTTEXT, VKPANGEALLG, VKPBESTALLG, VKPLIEFALLG, VKPRECHALLG, VKPLVORALLG, VKPIVVTALLG, VKPIVDIALLG, VKPANL1TXT, VKPANL2TXT, VKPANL3TXT, VKPAGT, VKPAUF1, VKPAUF2, VKPAUF3, VKPDISPO, VKPDDBENID, VKPDDAUFTNR, VKPEKOLL, VKPEART, VKPEFARBE, VKPLVERD, VKPWOBST, VKPEAKZ, VKPWAEHRSL, VKPKURS, VKPBETRAG, VKPHWAEHRSL, VKPHEUROKURS, VKPHEUROKURSVK, VKPFEUROKURS, VKPFEUROKURSVK, VKPTERMNR, VKPFAELLIG, VKPSICHER, VKPSICHP, VKPAKKRED, VKPBESTPOS, VKPDBLATT, VKPTBRIEF, VKPARTBILD, VKPFORMAT, VKPZEUGNIS, VKPPLANKRS, VKPPLANLFD, VKPRES1, VKPRES2, VKPVKZUABVH, VKPVKZUSAMP, VKPVKZUADR, VKPFKSPKZ, VKPFKSPRD, VKPFKSPTD, VKPKREDLIM, VKPSWING, VKPRAITING, VKPVERSCHL, VKPKREDBIS, VKPKREDVON, VKPLUEBKZ, VKPFRDAT, VKPFRZEIT, VKPFRBENID, VKPFRKZ, VKPCUSIGNED, VKPSTPROV, VKPSTFRACHT, VKPSTFRME, VKPSTIMP, VKPSTVERS, VKPSTZOLL, VKPFRGRENZ, VKPFRGRME, VKPVERSGRENZ, VKPZTARIF, VKPEDIKZ, VKPKOMMNR, VKPKOMMPOS, VKPEDIDAT, VKPEDIZEIT, VKPURBESTPOS, VKPVERTRNRK, VKPVERTRPOSK, VKPOPREIS, VKPOMENGE, VKPWUTERMKO, VKPKZERSATZ, VKPBUSIMODE, VKPEXMANDANT, VKPRUECKTG, VKPLIEFTERMN, VKPVERARBSTA, VKPCTO, VKPVTRNRK2, VKPVTRPOSK2, VKPAENTIME, VKPMAINPROG, VKPSAMPTYP, VKPUSRSTA, VKPACCVERS, VKPLIART, VKPDELTAE, VKPLIART2, VKPDELTAE2, VKPLIART3, VKPDELTAE3, VKPLINKMARK, VKPFILLER2)"
                        + " VALUES (:VKPMANDANT, '  ', :VKPAUFKRS, :VKPAUFLFD, :VKPAUFPOS, '00000000', 3, '        ', 0, 'SUNLV   ', 20130104, 0, '        ', 'S', 'RMB', '   ', '00000200', 'NA', 'BDE     ', '   ', 0, ' ', ' ', ' ', 2151, ' ', 'M', 'F', 'HLT10', 'PV912102                ', 'RD01      ', '       ', '1', '  ', '   ', '????è?μó32', '     ', '                        ', '                              ', '          ', 'HLT', 'WOV', 'SUNLE   ', '    ', 12300, 0, 0, 134, 134, 0, 134, 0, 0, 0, 12300, 'MTR', '2', '000001000000', 200, 12300, 19717, 3444, 0, 0, 0, 0, 100, 134, 211, 52, 100, 134, 212, 53, 0, 0, 0, 0, 100, 134, 212, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 12300, 19717, 3444, 0, 20130104, 20130104, 20130104, 20130104, '4.1.13  ', 0, '        ', '        ', 0, 0, '        ', 0, 0, '        ', 0, 0, '        ', 0, 0, '        ', 0, 0, 0, 0, 0, 0, '                                        ', 0, 0, 0, ' ', '000', 0, ' ', 0, 0, ' ', 0, 0, ' ', 0, 0, ' ', 0, 0, ' ', 0, 0, 0, 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, '      ', ' ', ' ', ' ', '     ', '               ', ' ', ' ', ' ', '        ', '000', '   ', ' ', '0000012000', 'MTR', '2', '000001000000', '  ', ' ', '        ', '0000000000', 0, 0, 1476, ' ', ' ', ' ', '      ', 0, 0, 0, '      ', 0, 0, 0, '      ', 0, 0, 0, '  ', '000000', '000', '  ', ' ', ' ', ' ', 'PV912102                ', 'RD01      ', 'PV912102                ', 'RD01      ', 79899775, 0, 0, 0, ' ', ' ', '00000000', '0000', '  ', ' ', '        ', '0000000000', ' ', 0, 0, 0, ' ', 0, ' ', ' ', '  ', '000000', '000', '                    ', '   ', '          ', '          ', 0, 0, '  ', '50', '60', '70', '80', 12300, 12300, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, ' ', ' ', ' ', ' ', ' ', 0, 0, 0, ' ', 0, '  ', '           ', ' ', ' ', '    ', 'J', 0, '        ', ' ', '000', ' ', ' ', '        ', 10000, 12000, 12000, ' ', '00000000', ' ', '00', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', '   ', ' ', ' ', ' ', ' ', 0, 0, 'J', '   ', '                              ', ' ', ' ', '   ', '                              ', '100227XYZ      ', '0001', '01', ' ', ' ', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '          ', ' ', ' ', ' ', ' ', '        ', '0000', '     ', '                        ', '          ', ' ', ' ', ' ', 'RMB', 10000, 1, 'RMB', 0, ' ', 0, ' ', 0, 20130104, ' ', 0, '               ', '000', ' ', ' ', ' ', ' ', ' ', '  ', '000000', ' ', ' ', ' ', ' ', ' ', ' ', 0, 0, '0090000000', '0089728588', '003', '01', 20231212, 0, ' ', 20130105, 2018, 'INTEXE  ', ' ', ' ', 0, 0, '   ', 0, 0, 0, 0, '   ', 0, '                    ', ' ', '                    ', '0000', 0, 0, '000', '                    ', '0000', '0000000000', 0, 0, ' ', '   ', '  ', 0, 0, '90', ' ', '                    ', 0, 0, '        ', '   ', '  ', '   ', '     ', 0, '     ', 0, '     ', 0, ' ', '                                      ')";
                    break;
                case "50.25":
                    or1.CommandText = " INSERT INTO VKPOS(VKPMANDANT, VKPSA, VKPAUFKRS, VKPAUFLFD, VKPAUFPOS, VKPAENDST, VKPAENDZL, VKPAENDBEN, VKPAENDDAT, VKPNEUBEN, VKPNEUDAT, VKPPAENDDAT, VKPPAENPROG, VKPAESTAT, VKPVB, VKPVG, VKPKUNDNR, VKPAUFART, VKPSACHBE, VKPPOSTYP, VKPABWERT, VKPMUSTER, VKPABVK, VKPEIL, VKPEZEIT, VKPERL, VKPERLDAT, VKPERLBEN, VKPPRODST, VKPARTST, VKPKOLL, VKPART, VKPFARBE, VKPGROE, VKPZENSUR, VKPAUFMART, VKPVERPART, VKPKURZBEZ, VKPKKOLL, VKPKDARTNR, VKPKDBEZ, VKPKDFARBNR, VKPPRGR, VKPARTGRP, VKPDSACHB, VKPZIELGR, VKPMENGE1, VKPMENGE2, VKPRESERV, VKPZUGET, VKPFREIGE, VKPGAUFBEST, VKPKOMMISS, VKPFAKT, VKPVERS, VKPEINGET, VKPOFFEN, VKPMEEH, VKPMEEHGRP, VKPMEEHFKT, VKPMENGE1T1, VKPMENGE1T2, VKPMENGE1T3, VKPMENGE1T4, VKPRESERVT1, VKPRESERVT2, VKPRESERVT3, VKPRESERVT4, VKPZUGETT1, VKPZUGETT2, VKPZUGETT3, VKPZUGETT4, VKPFREIGET1, VKPFREIGET2, VKPFREIGET3, VKPFREIGET4, VKPGAUFBESTT1, VKPGAUFBESTT2, VKPGAUFBESTT3, VKPGAUFBESTT4, VKPKOMMIST1, VKPKOMMIST2, VKPKOMMIST3, VKPKOMMIST4, VKPFAKTT1, VKPFAKTT2, VKPFAKTT3, VKPFAKTT4, VKPVERST1, VKPVERST2, VKPVERST3, VKPVERST4, VKPEINTT1, VKPEINTT2, VKPEINTT3, VKPEINTT4, VKPOFFENT1, VKPOFFENT2, VKPOFFENT3, VKPOFFENT4, VKPWVTERM, VKPWUTERM, VKPFREITERM, VKPVERSTERM, VKPLIEFTERM, VKPLIEFEING, VKPEINTTERM, VKPEINTEING, VKPVERZEING1, VKPVERZTERM1, VKPBESTTERM1, VKPVERZEING2, VKPVERZTERM2, VKPBESTTERM2, VKPVERZEING3, VKPVERZTERM3, VKPBESTTERM3, VKPVERZEING4, VKPVERZTERM4, VKPBESTTERM4, VKPVERZEING5, VKPVERZTERM5, VKPBESTTERM5, VKPLVDAT, VKPEINTVON, VKPVALUTA, VKPVALDAT, VKPLIEFZEIT, VKPLZEIT, VKPSTORDAT, VKPNACHL, VKPVERTKZ, VKPVKNPOS, VKPLTERMIN1, VKPLTART1, VKPMENGEP1, VKPLTERMIN2, VKPLTART2, VKPMENGEP2, VKPLTERMIN3, VKPLTART3, VKPMENGEP3, VKPLTERMIN4, VKPLTART4, VKPMENGEP4, VKPLTERMIN5, VKPLTART5, VKPMENGEP5, VKPSHOE, VKPSLAE, VKPOPTRLAE, VKPOPTART, VKPSPUL, VKPSPULG, VKPSPULGV, VKPSPULGB, VKPSPULM, VKPSPULMV, VKPSPULMB, VKPSPUL2, VKPSPULG2, VKPHUELSE, VKPKF, VKPFDRES, VKPWI, VKPSCHLICHTGR, VKPSCHLICHTNR, VKPHABR, VKPVABR, VKPSETKZ, VKPPRGRP, VKPLFDNR, VKPARTPRGR, VKPCOUPON, VKPPREIS, VKPPREH, VKPPREHGRP, VKPPREHFKT, VKPPRKZ, VKPPREISPRF, VKPUGSACHB, VKPPRLPREIS, VKPPREISUG, VKPKONFEKT, VKPPOSWERT, VKPSTAFFELF, VKPVGUET, VKPSONDERP, VKPINDEXNA1, VKPINDEXBA1, VKPINDEXWE1, VKPINDEXHS1, VKPINDEXNA2, VKPINDEXBA2, VKPINDEXWE2, VKPINDEXHS2, VKPINDEXNA3, VKPINDEXBA3, VKPINDEXWE3, VKPINDEXHS3, VKPKOAUFKRS, VKPKOAUFLFD, VKPKOAUFPOS, VKPKOAUFART, VKPARTPRF, VKPKZFREI, VKPFARBGRP, VKPARTUG, VKPFARBEUG, VKPARTOG, VKPFARBEOG, VKPIAEDAT, VKPEMENGEV, VKPEMENGEB, VKPPMENGE, VKPVERTEIL, VKPWDECK, VKPKANR, VKPKAPOS, VKPABLGRD, VKPGELISTET, VKPKONKURENT, VKPKPREIS, VKPHOCHRECH, VKPERFOLG, VKPANT, VKPANTSAV, VKPSIGNED, VKPABS, VKPABRKZ, VKPNOCOUNT, VKPEXAUFKRS, VKPEXAUFLFD, VKPEXAUFPOS, VKPEXART, VKPEXVAR, VKPEXDESS, VKPEXCOLORIT, VKPRAPLG, VKPRAPWDT, VKPGESSTA, VKPARTSTA, VKPPRSTA, VKPBSTSTA, VKPTERMSTA, VKPMGV, VKPMGB, VKPMGZU, VKPSTV, VKPSTB, VKPSTZU, VKPSTLGV, VKPSTLGB, VKPPAS, VKPPAI, VKPTSTS, VKPTSTI, VKPTSTLG, VKPTSTMAX, VKPUBLI, VKPAZUTEIL, VKPERSART, VKPZUTART, VKPZSBER, VKPFA, VKPGA, VKPQA, VKPMAART, VKPMAFZST, VKPZUSAM, VKPZUDOPA, VKPZUDPA, VKPGENEHM, VKPMUVERT, VKPZRUECK, VKPZKDAT, VKPZKBEN, VKPSTKNEUTR, VKPPARTGL, VKPKONFKZ, VKPKETTELN, VKPRESSACHB, VKPLAEVON, VKPLAEBIS, VKPSTDLAE, VKPSFERTKZ, VKPREGEL, VKPZUTPRIO, VKPSTAFFNR, VKPMAXPKT, VKPANZ1, VKPLAENGE1, VKPBREITE1, VKPANZ2, VKPLAENGE2, VKPBREITE2, VKPANZ3, VKPLAENGE3, VKPBREITE3, VKPANZ4, VKPLAENGE4, VKPBREITE4, VKPANZ5, VKPLAENGE5, VKPBREITE5, VKPFIXMASS, VKPURLAND, VKPPRFBEG, VKPPRFVKD, VKPEINWERK, VKPWERK, VKPQPKTH, VKPQPKTLH, VKPRICHGL, VKPWSCHTXT, VKPFILLER1, VKPABRUF, VKPLIEFKOMP, VKPVERSART, VKPZUSATZ, VKPKDKOMM, VKPLTEILNR, VKPVERSLO, VKPAUTOFREI, VKPSTRECKE, VKPANGETEXT, VKPANGEWIE, VKPBESTTEXT, VKPBESTWIE, VKPLIEFTEXT, VKPLIEFWIE, VKPRECHTEXT, VKPRECHWIE, VKPLVORTEXT, VKPLVORWIE, VKPIVVTTEXT, VKPIVVTWIE, VKPIVDITEXT, VKPIVDIWIE, VKPARTTEXT, VKPANGEALLG, VKPBESTALLG, VKPLIEFALLG, VKPRECHALLG, VKPLVORALLG, VKPIVVTALLG, VKPIVDIALLG, VKPANL1TXT, VKPANL2TXT, VKPANL3TXT, VKPAGT, VKPAUF1, VKPAUF2, VKPAUF3, VKPDISPO, VKPDDBENID, VKPDDAUFTNR, VKPEKOLL, VKPEART, VKPEFARBE, VKPLVERD, VKPWOBST, VKPEAKZ, VKPWAEHRSL, VKPKURS, VKPBETRAG, VKPHWAEHRSL, VKPHEUROKURS, VKPHEUROKURSVK, VKPFEUROKURS, VKPFEUROKURSVK, VKPTERMNR, VKPFAELLIG, VKPSICHER, VKPSICHP, VKPAKKRED, VKPBESTPOS, VKPDBLATT, VKPTBRIEF, VKPARTBILD, VKPFORMAT, VKPZEUGNIS, VKPPLANKRS, VKPPLANLFD, VKPRES1, VKPRES2, VKPVKZUABVH, VKPVKZUSAMP, VKPVKZUADR, VKPFKSPKZ, VKPFKSPRD, VKPFKSPTD, VKPKREDLIM, VKPSWING, VKPRAITING, VKPVERSCHL, VKPKREDBIS, VKPKREDVON, VKPLUEBKZ, VKPFRDAT, VKPFRZEIT, VKPFRBENID, VKPFRKZ, VKPCUSIGNED, VKPSTPROV, VKPSTFRACHT, VKPSTFRME, VKPSTIMP, VKPSTVERS, VKPSTZOLL, VKPFRGRENZ, VKPFRGRME, VKPVERSGRENZ, VKPZTARIF, VKPEDIKZ, VKPKOMMNR, VKPKOMMPOS, VKPEDIDAT, VKPEDIZEIT, VKPURBESTPOS, VKPVERTRNRK, VKPVERTRPOSK, VKPOPREIS, VKPOMENGE, VKPWUTERMKO, VKPKZERSATZ, VKPBUSIMODE, VKPEXMANDANT, VKPRUECKTG, VKPLIEFTERMN, VKPVERARBSTA, VKPCTO, VKPVTRNRK2, VKPVTRPOSK2, VKPAENTIME, VKPMAINPROG, VKPSAMPTYP, VKPUSRSTA, VKPACCVERS, VKPLIART, VKPDELTAE, VKPLIART2, VKPDELTAE2, VKPLIART3, VKPDELTAE3, VKPLINKMARK, VKPKREDNL, VKPEINSATZG, VKPVERWEND, VKPFILLER2)"
                      + " VALUES (:VKPMANDANT, '  ', :VKPAUFKRS, :VKPAUFLFD, :VKPAUFPOS, '00000000', 0, '        ', 0, 'SUNLV   ', 20130104, 0, '        ', 'S', 'RMB', '   ', '00000200', 'NA', 'BDE     ', '   ', 0, ' ', ' ', ' ', 2151, ' ', 0, '        ', 'M', 'F', 'HLT10', 'PV912102                ', 'RD01      ', '       ', '1', '  ', '   ', '??I?E<?O32', '     ', '                        ', '                              ', '          ', 'HLT', 'WOV', 'SUNLE   ', '    ', 12300, 0, 0, 134, 134, 0, 134, 0, 0, 0, 12300, 'MTR', '2', '000001000000', 200, 12300, 19717, 3444, 0, 0, 0, 0, 100, 134, 211, 52, 100, 134, 212, 53, 0, 0, 0, 0, 100, 134, 212, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 12300, 19717, 3444, 0, 20130104, 20130104, 20130104, 20130104, '4.1.13  ', 0, '        ', '        ', 0, 0, '        ', 0, 0, '        ', 0, 0, '        ', 0, 0, '        ', 0, 0, 0, 0, 0, 0, '                                        ', 0, 0, 0, ' ', '000', 0, ' ', 0, 0, ' ', 0, 0, ' ', 0, 0, ' ', 0, 0, ' ', 0, 0, 0, 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, '      ', ' ', ' ', ' ', '     ', '               ', ' ', ' ', ' ', '        ', '000', '   ', ' ', '0000012000', 'MTR', '2', '000001000000', '  ', ' ', '        ', '0000000000', 0, 0, 1476, ' ', ' ', ' ', '      ', 0, 0, 0, '      ', 0, 0, 0, '      ', 0, 0, 0, '  ', '000000', '000', '  ', ' ', ' ', ' ', 'PV912102                ', 'RD01      ', 'PV912102                ', 'RD01      ', 79899775, 0, 0, 0, ' ', ' ', '00000000', '0000', '  ', ' ', '        ', '0000000000', ' ', 0, 0, 0, ' ', 0, ' ', ' ', '  ', '000000', '000', '                    ', '   ', '          ', '          ', 0, 0, '  ', '50', '60', '70', '80', 12300, 12300, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, ' ', ' ', ' ', ' ', ' ', 0, 0, 0, ' ', 0, '  ', '           ', ' ', ' ', '    ', 'J', 0, '        ', ' ', '000', ' ', ' ', '        ', 10000, 12000, 12000, ' ', '00000000', ' ', '00', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ' ', '   ', ' ', ' ', ' ', ' ', 0, 0, 'J', '   ', '                              ', ' ', ' ', '   ', '                              ', '100227XYZ      ', '0001', '01', ' ', ' ', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '0', ' ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '   ', '          ', ' ', ' ', ' ', ' ', '        ', '0000', '     ', '                        ', '          ', ' ', ' ', ' ', 'RMB', 10000, 1, 'RMB', 0, ' ', 0, ' ', 0, 20130104, ' ', 0, '               ', '000', ' ', ' ', ' ', ' ', ' ', '  ', '000000', ' ', ' ', ' ', ' ', ' ', ' ', 0, 0, '0090000000', '0089728588', '003', '01', 20231212, 0, ' ', 20130105, 2018, 'INTEXE  ', ' ', ' ', 0, 0, '   ', 0, 0, 0, 0, '   ', 0, '                    ', ' ', '                    ', '0000', 0, 0, '000', '                    ', '0000', '0000000000', 0, 0, ' ', '   ', '  ', 0, 0, '90', ' ', '                    ', 0, 0, '        ', '   ', '  ', '   ', '     ', 0, '     ', 0, '     ', 0, ' ', ' ', '    ', '    ', '                                                                                                                 ')";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("VKPMANDANT", OracleType.NVarChar).Value = dwData["VKPMANDANT"].ToString();
            or1.Parameters.Add("VKPAUFKRS", OracleType.NVarChar).Value = dwData["VKPAUFKRS"].ToString();
            or1.Parameters.Add("VKPAUFLFD", OracleType.NVarChar).Value = dwData["VKPAUFLFD"].ToString();
            or1.Parameters.Add("VKPAUFPOS", OracleType.NVarChar).Value = dwData["VKPAUFPOS"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertICC_VKAV95(DataRow dwData, int option)
        {
            or1 = OracleDB.CreateCommand();
            DataSet result = new DataSet();
            switch (option)
            {
                case 1:
                    or1.CommandText = "INSERT INTO ICC_VKAV95(VKPMANDANT, VKPAUF,"
                        + "VKPAUFKRS, VKPAUFLFD, VKPAUFPOS, PRODFACT,VKPKOLL, VKPFART,VKPART, VKPFARBE,  VKPMENGE1, "
                        + "VKPMEEH,  VKPLIEFTERM, VKPZUGET, VKPFREIGE, VKPKOMMISS, VKPFAKT, VKPVERS, VKKSACHBE,VRQTY,VKPERL) "
                        + " SELECT VKPMANDANT,VKPAUFKRS||'-'||VKPAUFLFD,VKPAUFKRS,VKPAUFLFD,VKPAUFPOS,"
                        + " VKPKKOLL AS PRODFACT,VKPKOLL,RTRIM(VKPART)||'-'||RTRIM(VKPFARBE) as VKPFART,"
                        + " VKPART,VKPFARBE,VKPMENGE1*0.01,VKPMEEH, VKPLIEFTERM,VKPZUGET*0.01,VKPFREIGE*0.01,VKPKOMMISS,"
                        + " VKPFAKT,VKPVERS*0.01,VKKSACHBE,VKPMENGE1*0.01*VKPMEEHFKT*0.01*0.01*0.01,VKPERL  FROM VKPOS P JOIN VKKOPF "
                        + " ON VKKAUFKRS=VKPAUFKRS AND VKKAUFLFD=VKPAUFLFD WHERE VKPSA='  ' AND"
                        + "  NOT EXISTS (SELECT 1 FROM ICC_VKAV95 X WHERE  X.VKPMANDANT=P.VKPMANDANT "
                        + "  AND X.VKPAUFKRS=P.VKPAUFKRS AND X.VKPAUFLFD=P.VKPAUFLFD AND X.VKPAUFPOS=P.VKPAUFPOS)";
                    break;
                default:
                    break;
            }
            Connect2Proxy(or1);
        }
        //WDECK WBBST WBBEW VVLIEF VVTLIEF
        public void InsertVVLIEF(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = "INSERT INTO VVLIEF(VVMANDANT, VVLIEFSCH, VVLO, VVPRODST1, VVPRODST2, VVPRODST3, VVPRODST4, VVPRODST5, VVPRODST6, VVPRODST7, VVPRODST8, VVPRODST9, VVLIEFSCHTYP, VVKZINLEXP, VVSTATUS, VVVERSART, VVSPED, VVVERSARTU, VVSPEDU, VVVERSARTV, VVSPEDV, VVEBDAT, VVKZEBBUCH, VVLAND, VVPLZ, VVORT, VVBZ, VVBZBEZ, VVCOUNTY, VVCITY, VVAVISNR, VVFBR, VVLIEFBED, VVKZKOSTBER, VVLANDU, VVPLZU, VVORTU, VVBZU, VVBZBEZU, VVCOUNTYU, VVCITYU, VVLIEFSCHGRP, VVVERSDAT, VVLIEFDAT, VVFIXDAT, VVVERPART, VVGUETERNR, VVKZEINZEL, VVEINZTARA, VVEINZBRUT, VVEINZNET, VVANZ, VVTARA, VVBRUTTO, VVNETTO, VVVOLUMEN, VVANZSTK, VVNETMTR, VVWERT, VVLB1, VVANZPAL1, VVANZAPAL1, VVANZRPAL1, VVLB2, VVANZPAL2, VVANZAPAL2, VVANZRPAL2, VVLB3, VVANZPAL3, VVANZAPAL3, VVANZRPAL3, VVLB4, VVANZPAL4, VVANZAPAL4, VVANZRPAL4, VVLB5, VVANZPAL5, VVANZAPAL5, VVANZRPAL5, VVLB6, VVANZPAL6, VVANZAPAL6, VVANZRPAL6, VVKOLP, VVVPLP, VVTPSTA, VVTPMA1, VVTPMAANZ1, VVTPMA2, VVTPMAANZ2, VVGTBS, VVGTBK, VVKM1, VVGTBZ, VVKM2, VVTARIF1, VVORTKL1, VVFRPFL1, VVLAKL1, VVFRSATZ1, VVFRERRECH1, VVMARGEP1, VVMARGEA1, VVSUMME1, VVTARIF2, VVORTKL2, VVFRPFL2, VVLAKL2, VVFRSATZ2, VVFRERRECH2, VVMARGEP2, VVMARGEA2, VVSUMME2, VVTARIF3, VVORTKL3, VVFRPFL3, VVLAKL3, VVFRSATZ3, VVFRERRECH3, VVMARGEP3, VVMARGEA3, VVSUMME3, VVPRAEMIEV, VVPOLICE, VVGDATBIS, VVWERTV, VVWAEHRSLV, VVNEBENKO, VVWAEHRSLN, VVNACHNA, VVFESTBETR, VVVERZOLLT, VVKZABRFR, VVZAHLART, VVZAHLBED, VVKZLSPERR, VVANAME1, VVANAME2, VVASTRASSE, VVASTRASSE2, VVALAND, VVAPLZ, VVAORT, VVABZ, VVABZBEZ, VVACOUNTY, VVACITY, VVKUNDNRV, VVADRSLV, VVKUNDNRE, VVEMPFKZ, VVADRSLL, VVADRSLO, VVKUNDNRVF, VVADRSLKVF, VVADRSLLVF, VVKUNDNRR, VVADRSLKR, VVADRSLLR, VVKUNDNRF, VVADRSLKF, VVADRSLLF, VVANTEILF, VVPI, VVET, VVLS, VVPA, VVLA, VVFR, VVAV, VVDECKBLATT, VVLIEFSCHPOS, VVLPACKNR, VVANZTLIEF, VVANZTLIEFR, VVANZTLIEFB, VVLIEFTERM, VVFRACHTBE, VVVB, VVKZKUNDV, VVZONE, VVKGBIS, VVKDVKL, VVADRSLLUR, VVVALUTA, VVVALDAT, VVEKON, VVVERSIBE, VVVSTK, VVLSTKPA, VVPAUFKRS, VVPAUFLFD, VVPAUFPOS, VVVERPKOST, VVKOSTBGR, VVVERPKOSTE, VVLIEFNR, VVRENR, VVREPOS, VVREDAT, VVFRNETTO, VVFRKSTA, VVZOLLPAP, VVPROGRP, VVUEBKZ, VVDROFT, VVKREDLIM, VVSWING, VVRAITING, VVVERS, VVKREDBIS, VVKREDVON, VVLUEBKZ, VVFRDAT, VVFRZEIT, VVFRBENID, VVKUNDNRRE, VVLIEFART, VVKTRANSDAT, VVKTRANSUHR, VVKTRANSBEN, VVKTRANSSTA, VVSTRANSDATA, VVSTRANSUHRA, VVSTRANSERL, VVSTRANSDATE, VVSTRANSUHRE, VVETRANSDAT, VVETRANSUHR, VVETRANSBEN, VVAKTKZ, VVPSTKKZ, VVANZVP, VVWAEHRSL, VVHWAEHRSL, VVHEUROKURS, VVHEUROKURSVK, VVFEUROKURS, VVFEUROKURSVK, VVLOHNKD, VVARCHKZ, VVARCHDAT, VVARCHBEL, VVSEQUNO, VVLFDPN, VVARTGRP, VVAETINEU, VVPTARIF, VVANSPRECH, VVANSPZUS, VVTRANSSEQ, VVEDI, VVEDIDAT, VVQUITTAIO, VVGESMTR, VVLOAD, VVFILLER, VVAENDZL, VVAENDBEN, VVAENDDAT, VVNEUBEN, VVNEUDAT)"
                                + " VALUES (:VVMANDANT, :VVLIEFSCH, '01', 'M', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'U', 'I', 'EN', '   ', '   ', '   ', '   ', '   ', '   ', 0, ' ', 'CN ', '            ', '·eé?                                    ', '  ', '             ', '    ', '    ', '00000000', '0000', '   ', ' ', '   ', '            ', '                                        ', '  ', '             ', '    ', '    ', ' ', 0, 0, 0, '   ', '    ', ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0000000000', '  ', 0, 0, 0, '  ', 0, 0, 0, '  ', 0, 0, 0, '  ', 0, 0, 0, '  ', 0, 0, 0, '  ', 0, 0, 0, '        ', '        ', ' ', '    ', 0, '    ', 0, 0, 0, 0, 0, 0, '        ', '  ', 0, 0, 0, 0, 0, 0, 0, '        ', '  ', 0, 0, 0, 0, 0, 0, 0, '        ', '  ', 0, 0, 0, 0, 0, 0, 0, 0, '          ', 0, 0, '   ', 0, '   ', 0, 0, ' ', ' ', ' ', '   ', 'N', '                                        ', '                                        ', '                                        ', '                                        ', '   ', '            ', '                                        ', '  ', '             ', '    ', '    ', '00000000', '01      ', '00000000', ' ', '        ', '        ', '        ', '        ', '    ', '00000000', '        ', '    ', '        ', '        ', '    ', 0, 'N', 'N', 'N', 'N', 'N', 'N', 'N', ' ', '001', 0, 1, 0, 1, 0, '0000000000', '   ', ' ', '    ', 0, '   ', '        ', 0, 0, '        ', '0000000000', 0, 30, '  ', '000000', '000', 0, 0, 0, '        ', '          ', '0000', 0, 0, ' ', ' ', '   ', ' ', ' ', '0000000000', '0000000000', '   ', '  ', 0, 0, ' ', 0, 0, '        ', '        ', ' ', 0, 0, '        ', ' ', 0, 0, ' ', 0, 0, 0, 0, '        ', ' ', ' ', 0, '   ', '   ', 0, ' ', 0, ' ', '        ', ' ', '00000000', '00000000', '000000000000000', '0000', '   ', ' ', ' ', '        ', '                          ', '00000000', ' ', '00000000', ' ', '000000000', '0000', '                                                             ', 1, '        ', 0, 'SUNLV   ', 20120530)";
                    break;
                case "50.25":
                    or1.CommandText = "INSERT INTO VVLIEF(VVMANDANT, VVLIEFSCH, VVLO, VVPRODST1, VVPRODST2, VVPRODST3, VVPRODST4, VVPRODST5, VVPRODST6, VVPRODST7, VVPRODST8, VVPRODST9, VVLIEFSCHTYP, VVKZINLEXP, VVSTATUS, VVVERSART, VVSPED, VVVERSARTU, VVSPEDU, VVVERSARTV, VVSPEDV, VVEBDAT, VVKZEBBUCH, VVLAND, VVPLZ, VVORT, VVBZ, VVBZBEZ, VVCOUNTY, VVCITY, VVAVISNR, VVFBR, VVLIEFBED, VVKZKOSTBER, VVLANDU, VVPLZU, VVORTU, VVBZU, VVBZBEZU, VVCOUNTYU, VVCITYU, VVLIEFSCHGRP, VVVERSDAT, VVLIEFDAT, VVFIXDAT, VVVERPART, VVGUETERNR, VVKZEINZEL, VVEINZTARA, VVEINZBRUT, VVEINZNET, VVANZ, VVTARA, VVBRUTTO, VVNETTO, VVVOLUMEN, VVANZSTK, VVNETMTR, VVWERT, VVLB1, VVANZPAL1, VVANZAPAL1, VVANZRPAL1, VVLB2, VVANZPAL2, VVANZAPAL2, VVANZRPAL2, VVLB3, VVANZPAL3, VVANZAPAL3, VVANZRPAL3, VVLB4, VVANZPAL4, VVANZAPAL4, VVANZRPAL4, VVLB5, VVANZPAL5, VVANZAPAL5, VVANZRPAL5, VVLB6, VVANZPAL6, VVANZAPAL6, VVANZRPAL6, VVKOLP, VVVPLP, VVTPSTA, VVTPMA1, VVTPMAANZ1, VVTPMA2, VVTPMAANZ2, VVGTBS, VVGTBK, VVKM1, VVGTBZ, VVKM2, VVTARIF1, VVORTKL1, VVFRPFL1, VVLAKL1, VVFRSATZ1, VVFRERRECH1, VVMARGEP1, VVMARGEA1, VVSUMME1, VVTARIF2, VVORTKL2, VVFRPFL2, VVLAKL2, VVFRSATZ2, VVFRERRECH2, VVMARGEP2, VVMARGEA2, VVSUMME2, VVTARIF3, VVORTKL3, VVFRPFL3, VVLAKL3, VVFRSATZ3, VVFRERRECH3, VVMARGEP3, VVMARGEA3, VVSUMME3, VVPRAEMIEV, VVPOLICE, VVGDATBIS, VVWERTV, VVWAEHRSLV, VVNEBENKO, VVWAEHRSLN, VVNACHNA, VVFESTBETR, VVVERZOLLT, VVKZABRFR, VVZAHLART, VVZAHLBED, VVKZLSPERR, VVANAME1, VVANAME2, VVASTRASSE, VVASTRASSE2, VVALAND, VVAPLZ, VVAORT, VVABZ, VVABZBEZ, VVACOUNTY, VVACITY, VVKUNDNRV, VVADRSLV, VVKUNDNRE, VVEMPFKZ, VVADRSLL, VVADRSLO, VVKUNDNRVF, VVADRSLKVF, VVADRSLLVF, VVKUNDNRR, VVADRSLKR, VVADRSLLR, VVKUNDNRF, VVADRSLKF, VVADRSLLF, VVANTEILF, VVPI, VVET, VVLS, VVPA, VVLA, VVFR, VVAV, VVDECKBLATT, VVLIEFSCHPOS, VVLPACKNR, VVANZTLIEF, VVANZTLIEFR, VVANZTLIEFB, VVLIEFTERM, VVFRACHTBE, VVVB, VVKZKUNDV, VVZONE, VVKGBIS, VVKDVKL, VVADRSLLUR, VVVALUTA, VVVALDAT, VVEKON, VVVERSIBE, VVVSTK, VVLSTKPA, VVPAUFKRS, VVPAUFLFD, VVPAUFPOS, VVVERPKOST, VVKOSTBGR, VVVERPKOSTE, VVLIEFNR, VVRENR, VVREPOS, VVREDAT, VVFRNETTO, VVFRKSTA, VVZOLLPAP, VVPROGRP, VVUEBKZ, VVDROFT, VVKREDLIM, VVSWING, VVRAITING, VVVERS, VVKREDBIS, VVKREDVON, VVLUEBKZ, VVFRDAT, VVFRZEIT, VVFRBENID, VVKUNDNRRE, VVLIEFART, VVKTRANSDAT, VVKTRANSUHR, VVKTRANSBEN, VVKTRANSSTA, VVSTRANSDATA, VVSTRANSUHRA, VVSTRANSERL, VVSTRANSDATE, VVSTRANSUHRE, VVETRANSDAT, VVETRANSUHR, VVETRANSBEN, VVAKTKZ, VVPSTKKZ, VVANZVP, VVWAEHRSL, VVHWAEHRSL, VVHEUROKURS, VVHEUROKURSVK, VVFEUROKURS, VVFEUROKURSVK, VVLOHNKD, VVARCHKZ, VVARCHDAT, VVARCHBEL, VVSEQUNO, VVLFDPN, VVARTGRP, VVAETINEU, VVPTARIF, VVANSPRECH, VVANSPZUS, VVTRANSSEQ, VVEDI, VVEDIDAT, VVQUITTAIO, VVGESMTR, VVLOAD, VVFILLER, VVAENDZL, VVAENDBEN, VVAENDDAT, VVNEUBEN, VVNEUDAT)"
                        + " VALUES (:VVMANDANT, :VVLIEFSCH, '  ', 'M', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'V', 'E', '  ', '   ', '   ', '   ', '   ', '   ', '   ', 0, ' ', '   ', '            ', '                                        ', '  ', '             ', '    ', '    ', '00000000', '0000', '   ', 'N', '   ', '            ', '                                        ', '1 ', '             ', '    ', '    ', ' ', 0, 0, 0, '   ', '    ', 'N', 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, '0000000000', '  ', 1, 0, 0, '  ', 0, 0, 0, '  ', 0, 0, 0, '  ', 0, 0, 0, '  ', 0, 0, 0, '  ', 0, 0, 0, '        ', '        ', ' ', '    ', 0, '    ', 0, 0, 0, 0, 0, 0, '        ', '  ', 0, 0, 0, 0, 0, 0, 0, '        ', '  ', 0, 0, 0, 0, 0, 0, 0, '        ', '  ', 0, 0, 0, 0, 0, 0, 0, 0, '          ', 0, 0, '   ', 0, '   ', 0, 0, 'N', 'N', 'N', '   ', 'N', '                                        ', '                                        ', '                                        ', '                                        ', '   ', '            ', '                                        ', '  ', '             ', '    ', '    ', '00000000', '01      ', '00000000', ' ', '        ', '        ', '        ', '        ', '    ', '00000000', '        ', '    ', '        ', '        ', '    ', 0, 'N', 'N', 'N', 'N', 'N', 'N', 'N', ' ', '001', 1, 1, 0, 0, 0, '0000000000', '   ', 'N', '    ', 0, '   ', '        ', 0, 0, '        ', '0000000000', 0, 0, '  ', '000000', '000', 0, 0, 0, '00000000', '          ', '0000', 0, 0, 'A', 'J', '   ', ' ', ' ', '0000000000', '0000000000', '003', '01', 0, 0, 'N', 0, 0, '        ', '        ', ' ', 0, 0, '        ', ' ', 0, 0, ' ', 0, 0, 0, 0, '        ', ' ', ' ', 0, '   ', '   ', 0, ' ', 0, ' ', '00000000', ' ', '00000000', '00000000', '000000000000000', '0000', '   ', ' ', ' ', '        ', '                          ', '00000000', ' ', '00000000', ' ', '000000000', '0000', '                                                             ', 0, '        ', 0, '        ', 0)";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("VVMANDANT", OracleType.NVarChar).Value = dwData["VVMANDANT"].ToString();
            or1.Parameters.Add("VVLIEFSCH", OracleType.NVarChar).Value = dwData["VVLIEFSCH"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertVAFARBEN(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = "INSERT INTO VAFARBEN(VAFMANDANT, VAFKOLL, VAFART, VAFFARBE, VAFLIEFERSG, VAFBEZ, VAFFFARBE, VAFDESS, VAFCOLORIT, VAFBESCHICH, VAFPKUNDNR, VAFPWERK, VAFPABT, VAFPART, VAFPVAR, VAFPLART, VAFSPERRDAT, VAFKZZOLL2, VAFFARBGRP, VAFMUFAEH, VAFCOFAEH, VAFMINPR1, VAFMINPR2, VAFABVK, VAFSFERTKZ, VAFEAN, VAFPGROE, VAFARTBEZ, VAFZUSTAND, VAFURCODE1, VAFURCODE2, VAFURCODE3, VAFURCODE4, VAFKZDUMCOL, VAFLASCHE, VAFPVARKZ, VAFSTANDARD, VAFEANLASCHE, VAFFILLER, VAFAENDZL, VAFAENDBEN, VAFAENDDAT, VAFNEUBEN, VAFNEUDAT)"
                                + "  VALUES (:VAFMANDANT, :VAFKOLL,:VAFART, :VAFFARBE, ' ', :VAFBEZ, :VAFFFARBE, '          ', '          ', '          ', '00000000', '   ', '   ', '19009.30.3          ', '11', '                    ', 0, ' ', ' ', ' ', ' ', 0, 0, ' ', ' ', '0000000000000', '       ', 'VICTORIA  ', '    ', '    ', '    ', '    ', '    ', ' ', ' ', ' ', ' ', '0000000000000', '                               ', 0, '        ', 0, 'SUNLV   ', 20110104)";
                    break;
                case "50.26":
                    or1.CommandText = "INSERT INTO VAFARBEN(VAFMANDANT, VAFKOLL, VAFART, VAFFARBE, VAFLIEFERSG, VAFBEZ, VAFFFARBE, VAFDESS, VAFCOLORIT, VAFBESCHICH, VAFPKUNDNR, VAFPWERK, VAFPABT, VAFPART, VAFPVAR, VAFPLART, VAFSPERRDAT, VAFKZZOLL2, VAFFARBGRP, VAFMUFAEH, VAFCOFAEH, VAFMINPR1, VAFMINPR2, VAFABVK, VAFSFERTKZ, VAFEAN, VAFPGROE, VAFARTBEZ, VAFZUSTAND, VAFURCODE1, VAFURCODE2, VAFURCODE3, VAFURCODE4, VAFKZDUMCOL, VAFLASCHE, VAFPVARKZ, VAFSTANDARD, VAFEANLASCHE, VAFFILLER, VAFAENDZL, VAFAENDBEN, VAFAENDDAT, VAFNEUBEN, VAFNEUDAT)"
                                + "  VALUES (:VAFMANDANT, :VAFKOLL,:VAFART, :VAFFARBE, ' ', :VAFBEZ, :VAFFFARBE, '          ', '          ', '          ', '00000000', '   ', '   ', '19009.30.3          ', '11', '                    ', 0, ' ', ' ', ' ', ' ', 0, 0, ' ', ' ', '0000000000000', '       ', 'VICTORIA  ', '    ', '    ', '    ', '    ', '    ', ' ', ' ', ' ', ' ', '0000000000000', '                               ', 0, '        ', 0, 'SUNLV   ', 20110104)";
                    break;
                default:
                    break;
                //VAFMANDANT VAFKOLL VAFART VAFFARBE VAFBEZ VAFFFARBE

            }
            or1.Parameters.Add("VAFMANDANT", OracleType.NVarChar).Value = dwData["VAFMANDANT"].ToString();
            or1.Parameters.Add("VAFKOLL", OracleType.NVarChar).Value = dwData["VAFKOLL"].ToString();
            or1.Parameters.Add("VAFART", OracleType.NVarChar).Value = dwData["VAFART"].ToString();
            or1.Parameters.Add("VAFFARBE", OracleType.NVarChar).Value = dwData["VAFFARBE"].ToString();
            or1.Parameters.Add("VAFBEZ", OracleType.NVarChar).Value = dwData["VAFBEZ"].ToString();
            or1.Parameters.Add("VAFFFARBE", OracleType.NVarChar).Value = dwData["VAFFFARBE"].ToString();
            Connect2Proxy(or1);
        }

        public void InsertVVTLIEF(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = "INSERT INTO VVTLIEF(VVTMANDANT, VVTAUFTYP, VVTAUFKRS, VVTAUFLFD, VVTAUFPOS, VVTTEILNR, VVTLOVON, VVTLOAN, VVTTEILNRAN, VVTABHAENGIG, VVTLOABH1, VVTLOABH2, VVTPRODST, VVTKZINLEXP, VVTLAND, VVTPLZ, VVTKUNDNRL, VVTADRSLL, VVTLIEFSCH, VVTLIEFSCHPOS, VVTKUNDNRR, VVTADRSLR, VVTRENR, VVTPFRENR, VVTME, VVTANZSTK, VVTMTR, VVTKG, VVTQM, VVTRUECKANZSTK, VVTRUECKMTR, VVTRUECKKG, VVTRUECKQM, VVTANZVP, VVTLB1, VVTLB2, VVTLB3, VVTLB4, VVTLB5, VVTLB6, VVTZAHLBED, VVTVALUTA, VVTVALDAT, VVTEKON, VVTLIEFBED, VVTLANDU, VVTPLZU, VVTORTU, VVTBZU, VVTBZBEZU, VVTCOUNTYU, VVTCITYU, VVTVERSART, VVTVERPART, VVTLIEFSCHGRP, VVTSTKPA, VVTSPED, VVTPRKZ, VVTDRKZ, VVTDRDAT, VVTAFOLGEV, VVTVB, VVTORT, VVTBZ, VVTBZBEZ, VVTCOUNTY, VVTCITY, VVTREGRP, VVTKDVKL, VVTANAME1, VVTANAME2, VVTASTRASSE1, VVTASTRASSE2, VVTALAND, VVTAPLZ, VVTAORT, VVTABZ, VVTABZBEZ, VVTACOUNTY, VVTACITY, VVTKZVVERP, VVTPRIO, VVTKUNDLO, VVTKUNDLB, VVTKUNDLP, VVTKDBEZKZ, VVTREPOS, VVTVERS, VVTPARTIE, VVTPARTIEKZ, VVTRESTKZ, VVTFORT, VVTKDAUFTNR, VVTKDAUFDAT, VVTPOSTYP, VVTKUNDNR, VVTWERK, VVTABT, VVTWAKZ, VVTART, VVTVAR, VVTFARBE, VVTDESS, VVTCOL, VVTBESCH, VVTGROE, VVTAUFM, VVTSETKZ, VVTLOHNKD, VVTKOLL, VVTSANZSTK, VVTROHMTR, VVTBRUTTO, VVTNETTO, VVTVERDERB, VVTFOLGEMTR, VVTSOLLTEIL, VVTGEBNR, VVTPROGRP, VVTPLFDAT, VVTFBENID, VVTFDAT, VVTFZEIT, VVTVBDAT, VVTLIEFTERM, VVTEILAUS, VVTFRNETTO, VVTHUELTYP, VVTHUELGEW, VVTSPULEN, VVTNETKG, VVTFEUCHTEI, VVTFEUCHTES, VVTHGEWABZ, VVTANZPA, VVTTARA, VVTBRTGEW, VVTPACKTYP, VVTKREDLIM, VVTSWING, VVTRAITING, VVTVERSICH1, VVTVERSICH2, VVTVERSICH3, VVTVERSICH4, VVTVERSICH5, VVTVERSICH21, VVTVERSICH22, VVTVERSICH23, VVTVERSICH24, VVTVERSICH25, VVTKREDBIS, VVTKREDVON, VVTLUEBKZ, VVTFKNVS, VVTFKSPTD, VVTFKSPRD, VVTROHGEW, VVTFERGEW, VVTZUSTAND, VVTARTGRP, VVTARTABW, VVTAPOS, VVTAUFMSL, VVTZENSUR, VVTPOSEXT, VVTKZZUTEI, VVTAKKREDNR, VVTFILLER1)"
                        + " VALUES (:VVTMANDANT, 'K', :VVTAUFKRS, :VVTAUFLFD, :VVTAUFPOS, '0001', '01', '  ', 0, 0, '  ', '  ', 'G', 'E', 'CN ', '            ', '00000200', '        ', :VVTLIEFSCH, :VVTLIEFSCHPOS, '00000200', '        ', '00000000', '00000000', 'KG ', 0, 0, '0000450000', '0000000000', 0, 0, '0000000000', '0000000000', 0, 'YN', '  ', '  ', '  ', '  ', '  ', 'STD', 0, 0, '        ', 'EXW', 'CN ', '42115       ', 'Jiangyin                                ', '1 ', 'Jiangyin     ', '    ', '    ', 'INT', '   ', ' ', 30, 'LKW', '  ', ' ', 0, 0, 'RMB', '·eé?                                    ', '  ', '             ', '    ', '    ', ' ', '   ', '                                        ', '                                        ', '                                        ', '                                        ', '   ', '            ', '                                        ', '  ', '             ', '    ', '    ', 'N', '9', '  ', '  ', '        ', ' ', '000', ' ', '       ', ' ', ' ', 0, '                    ', 0, '   ', '        ', '   ', '   ', 'V', '19009.30.3              ', '   ', '1M0300    ', '          ', '          ', '          ', '       ', '  ', ' ', '        ', 'JMK10', 0, 0, 0, 0, 0, 0, 0, '        ', '   ', 20110206, 'SUNLV   ', 20120825, 1555, 20110206, 20110206, ' ', 0, '      ', 0, 0, '0000450000', 1825, 1825, 'J', 0, 0, 0, '    ', '0090000000', '0089728588', '003', '01', '  ', '  ', '  ', '  ', '  ', '  ', '  ', '  ', '  ', 20231212, 0, ' ', ' ', 0, 0, 0, 0, '    ', '   ', ' ', '0000', '  ', '  ', '000000', ' ', '                    ', '                                                     ')";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("VVTMANDANT", OracleType.NVarChar).Value = dwData["VVTMANDANT"].ToString();
            or1.Parameters.Add("VVTLIEFSCH", OracleType.NVarChar).Value = dwData["VVTLIEFSCH"].ToString();
            or1.Parameters.Add("VVTLIEFSCHPOS", OracleType.NVarChar).Value = dwData["VVTLIEFSCHPOS"].ToString();
            or1.Parameters.Add("VVTAUFKRS", OracleType.NVarChar).Value = dwData["VVTAUFKRS"].ToString();
            or1.Parameters.Add("VVTAUFLFD", OracleType.NVarChar).Value = dwData["VVTAUFLFD"].ToString();
            or1.Parameters.Add("VVTAUFPOS", OracleType.NVarChar).Value = dwData["VVTAUFPOS"].ToString();

            Connect2Proxy(or1);
        }
        public void InsertVVPACK(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            string table = "VVPACK";  //VVPMANDANT	VVPLIEFSCH	VVPPACKNR
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = "INSERT INTO VVPACK(VVPMANDANT, VVPLIEFSCH, VVPPACKNR, VVPAENDZL, VVPAENDBEN, VVPAENDDAT, VVPUEBLIEFSCH, VVPINPACKNR, VVPPADNR, VVPPACKTYP, VVPBRUTTO, VVPNETTO, VVPTARA, VVPWERT, VVPFRACHTBE, VVPZUSCHLAG, VVPFRNETTO, VVPNEBENKO, VVPWAEHRSLN, VVPLIEFNR, VVPRENR, VVPREPOS, VVPREDAT, VVPTPMA, VVPTPMNR, VVPPORTO, VVPRAUFKRS, VVPRAUFLFD, VVPRAUFPOS, VVPTEILNR, VVPVOLUMEN, VVPLAENGE, VVPBREITE, VVPHOEHE, VVPKZMANUELL, VVPHUELGEW, VVPHANGEW, VVPSPULEN, VVPPKDNR, VVPGEWGEW, VVPENDE, VVPSHIPM, VVPAUTOPN, VVPSERVICE, VVPOHNEBST, VVPRAMPE, VVPFILLER)"
                    + " VALUES (:VVPMANDANT, :VVPLIEFSCH, :VVPPACKNR, 0, '        ', 0, :VVPLIEFSCH, '0000', '                         ', 'NULL', 531, 531, 0, 0, '0000000000', 0, 0, 0, '   ', '        ', '          ', '0000', 0, '    ', '00000000', 0, '  ', '00000000', '000', '0000', 0, 0, 0, 0, ' ', 0, 0, 12, '                         ', ' ', ' ', '     ', ' ', '   ', ' ', ' ', '                              ')";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("VVPMANDANT", OracleType.NVarChar).Value = dwData["VVPMANDANT"].ToString();
            or1.Parameters.Add("VVPLIEFSCH", OracleType.NVarChar).Value = dwData["VVPLIEFSCH"].ToString();
            or1.Parameters.Add("VVPPACKNR", OracleType.NVarChar).Value = dwData["VVPPACKNR"].ToString();
            Connect2Proxy(or1);
        }

        #endregion
        #region======V==============
        public void InsertICC_XDECK(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            string table = "VVPACK";  //VVPMANDANT	VVPLIEFSCH	VVPPACKNR
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = " INSERT INTO ICC_XDECK(MANDANT, CONTROL,KRS, LFD, POS, TQTY, UPOS, MTYPE, ENDDATE, ART, VAR, COLOR, ASIZE, UM, CDES, ARTDES, QTYSTD, QTYPLAN, QTYACT, PRSTD, PREK, PRPLAN, VQTYSTDPRSTD, VQTYSTDPREK, VQTYSTDPRPLAN, VQTYPLANPRSTD, VQTYPLANPREK, VQTYPLANPRPLAN, VQTYACTPRSTD, VQTYACTPREK, VQTYACTPRPLAN, REQ, SELLER, SELLERNAME, REMARK)"
                        + " VALUES (:MANDANT, :CONTROL,:KRS, :LFD, :POS, 0, :UPOS, :MTYPE, 0,'ART', 'VAR', 'COLOR', 'ASIZE', 'MTR', 'CDES', 'ARTDES', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SELLER', 'SELLERNAME', 'REMARK')";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("MANDANT", OracleType.NVarChar).Value = dwData["MANDANT"].ToString();
            or1.Parameters.Add("CONTROL", OracleType.NVarChar).Value = dwData["CONTROL"].ToString();
            or1.Parameters.Add("KRS", OracleType.NVarChar).Value = dwData["KRS"].ToString();
            or1.Parameters.Add("LFD", OracleType.NVarChar).Value = dwData["LFD"].ToString();
            or1.Parameters.Add("POS", OracleType.NVarChar).Value = dwData["POS"].ToString();
            or1.Parameters.Add("UPOS", OracleType.NVarChar).Value = dwData["UPOS"].ToString();
            or1.Parameters.Add("MTYPE", OracleType.NVarChar).Value = dwData["MTYPE"].ToString();
            Connect2Proxy(or1);
        }
        #endregion

        #region===ICC============
        //ICC_FOLDERS;ICC_MENUDEF; ICC_FUNCTIONS
        public void InsertICC_FOLDERS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = "INSERT INTO ICC_FOLDERS(MANDANT, ROWNID, COMPANY, ROOT, SUB)"
                        + " VALUES (:MANDANT, SEQ_ICC_ITX.NEXTVAL, :COMPANY, :ROOT, :SUB)";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("MANDANT", OracleType.NVarChar).Value = dwData["MANDANT"].ToString();
            or1.Parameters.Add("COMPANY", OracleType.NVarChar).Value = dwData["COMPANY"].ToString();
            or1.Parameters.Add("ROOT", OracleType.NVarChar).Value = dwData["ROOT"].ToString();
            or1.Parameters.Add("SUB", OracleType.NVarChar).Value = dwData["SUB"].ToString();

            Connect2Proxy(or1);
        }
        public void InsertICC_MENUDEF(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = " INSERT INTO ICC_MENUDEF(MANDANT, ROWNID, COMPANY, USERID, PROCESS, MENUITEM, MENUID, FATHER, HEADER, TAG, ICON, LARGEICON)"
                        + " VALUES (:MANDANT, SEQ_ICC_ITX.NEXTVAL, :COMPANY,:USERID,:PROCESS, :MENUITEM, :MENUID, :FATHER, :HEADER, :TAG, :ICON, :LARGEICON)";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("MANDANT", OracleType.NVarChar).Value = dwData["MANDANT"].ToString();
            or1.Parameters.Add("COMPANY", OracleType.NVarChar).Value = dwData["COMPANY"].ToString();
            or1.Parameters.Add("USERID", OracleType.NVarChar).Value = dwData["USERID"].ToString();
            or1.Parameters.Add("PROCESS", OracleType.NVarChar).Value = dwData["PROCESS"].ToString();
            or1.Parameters.Add("MENUITEM", OracleType.NVarChar).Value = dwData["MENUITEM"].ToString();
            or1.Parameters.Add("MENUID", OracleType.NVarChar).Value = dwData["MENUID"].ToString();
            or1.Parameters.Add("FATHER", OracleType.NVarChar).Value = dwData["FATHER"].ToString();
            or1.Parameters.Add("HEADER", OracleType.NVarChar).Value = dwData["HEADER"].ToString();
            or1.Parameters.Add("TAG", OracleType.NVarChar).Value = dwData["TAG"].ToString();
            or1.Parameters.Add("ICON", OracleType.NVarChar).Value = dwData["ICON"].ToString();
            or1.Parameters.Add("LARGEICON", OracleType.NVarChar).Value = dwData["LARGEICON"].ToString();
            Connect2Proxy(or1);
        }
        public void InsertICC_FUNCTIONS(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            string table = "VVPACK";  //VVPMANDANT	VVPLIEFSCH	VVPPACKNR
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "50.24":
                    or1.CommandText = " INSERT INTO ICC_FUNCTIONS(MANDANT, ROWNID, TYPE, NAMESPACE, FULLNAME, FILENAME,DESCRIPTION)"
                                + " VALUES (:MANDANT,SEQ_ICC_ITX.NEXTVAL, :TYPE, :NAMESPACE, :FULLNAME, :FILENAME,:DESCRIPTION)";
                    break;
                default:
                    break;
            }
            or1.Parameters.Add("MANDANT", OracleType.NVarChar).Value = dwData["MANDANT"].ToString();
            or1.Parameters.Add("TYPE", OracleType.NVarChar).Value = dwData["TYPE"].ToString();
            or1.Parameters.Add("NAMESPACE", OracleType.NVarChar).Value = dwData["NAMESPACE"].ToString();
            or1.Parameters.Add("FULLNAME", OracleType.NVarChar).Value = dwData["FULLNAME"].ToString();
            or1.Parameters.Add("FILENAME", OracleType.NVarChar).Value = dwData["FILENAME"].ToString();
            or1.Parameters.Add("DESCRIPTION", OracleType.NVarChar).Value = dwData["DESCRIPTION"].ToString();
            Connect2Proxy(or1);
        }
        #endregion

    }
}
